tuya/tuyaopen-ide-manifests/wifi
Claude Code and agent skill by tuya/tuyaopen-ide-manifests
- community
Checking that the SKILL.md file is still in the repository.
TuyaOS Wi-Fi via tal_wifi: station connect, AP start, scan, low power. WiFi、联网、STA、AP、扫网、配网、tal_wifi、连接路由器、热点。
Install
npx vskill@latest install tuya/tuyaopen-ide-manifests/wifiSKILL.md
TuyaOS Wi-Fi (tal_wifi)
Demos: software/TuyaOS/apps/tuyaos_demo_examples/src/examples/os_wifi/
| Mode | File | Entry | |
|---|---|---|---|
| Station (STA) | example_os_wifi_sta.c | example_wifi_sta | |
| SoftAP | example_os_wifi_ap.c | example_wifi_ap | |
| Scan | example_os_wifi_scan.c | example_wifi_scan | |
| Low power | example_os_wifi_low_power.c | example_wifi_low_power |
Also related (product remote, not basic STA/AP):
| Topic | Demo | |
|---|---|---|
| Wi-Fi FFC master | …/service_ffc_master/ (tuya_iot_wifi_ffc_*) | |
| Wi-Fi FFC slaver | …/service_ffc_slaver/ |
Confirm first
- Role: STA / AP / scan / LP / FFC remote?
- STA: SSID + password (never hardcode secrets from demos — demos use placeholders).
- AP: SSID, password, channel, IP/mask/gw if static.
- Whether the app already runs a higher-level TuyaOS product init (
example_soc_*/ framework Wi-Fi). If the product stack owns Wi-Fi, do not double-tal_wifi_initwithout checking existing code.
Core APIs
| Function | Role | |
|---|---|---|
tal_wifi_init(event_cb) | register WF_EVENT_E callback, bring up stack | |
tal_wifi_set_work_mode(mode) | e.g. WWM_STATION / AP mode enum in headers | |
tal_wifi_station_connect(ssid, passwd) | STA join | |
tal_wifi_get_ip(WF_STATION, &ip) | read IP after WFE_CONNECTED | |
tal_wifi_ap_start(...) | softAP (see AP demo for exact args / NW_IP_S) | |
tal_wifi_all_ap_scan / tal_wifi_release_ap | scan + free results | |
tal_wifi_lp_enable / tal_wifi_lp_disable / tal_wifi_set_lps_dtim | low power | |
tal_net_* | UDP/TCP after link is up (AP demo uses broadcast) |
STA pattern (adapt demo — do not leave xxxx credentials)
SoftAP (summary)
From example_os_wifi_ap.c:
tal_wifi_init(cb)- set AP work mode
- fill
NW_IP_S(ip/mask/gw) + SSID/password/channel tal_wifi_ap_start(...)(exact prototype in demo /tal_wifi.h)- optional:
tal_net_socket_create+tal_net_send_tofor LAN broadcast
Scan (summary)
tal_wifi_all_ap_scan(&ap_list, &count) then print SSID/RSSI/auth; always tal_wifi_release_ap(ap_list) when done.
Low power (summary)
After STA is up: tal_wifi_set_lps_dtim(...), tal_wifi_lp_enable(), and platform CPU LP helpers (tal_cpu_set_lp_mode / tal_sleep) as in the LP demo. Disable LP before heavy traffic.
Rules
- Open the matching demo `.c` in-tree when present; copy event handling and struct field names for this SDK version.
- Never commit real passwords from chat into source without user OK; use config / macros the app already uses.
- Product vs raw Wi-Fi: many commercial apps already init Wi-Fi inside TuyaOS product/device init. Grep the app for
tal_wifi_init/tuya_iot_*first. - FFC remotes use
tuya_iot_wifi_ffc_init/control/bind/send— different stack; readservice_ffc_*READMEs. - Build with `tuyaos-build`. Not TuyaOpen
tos.py/ lwIP-only examples from other trees.
Troubleshooting
| Symptom | Likely cause | Fix | |
|---|---|---|---|
No WFE_CONNECTED | wrong SSID/pass / 5 GHz-only AP on 2.4-only chip | verify band + credentials | |
| Double init crash | product stack already called tal_wifi_init | reuse existing callback path | |
| No IP fields compile | SDK uses nwipstr vs .ip | match demo #ifdef style | |
| Scan leaks | forgot tal_wifi_release_ap | free after use |
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/embedded/tuyaos-hardware-vibe-coding/peripheral-drivers/wifi/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/tuya/tuyaopen-ide-manifests/wifi)