【已解决】关于TuyaOS 开发重置网络的问题

Wi-Fi 设备、Wi-Fi 低功耗设备、Wi-Fi BLE 双模设备、Ethernet设备、Ethernet+Wi-Fi设备等
Post Reply
Natural
Posts: 22

以前使用旧版SDK 开发的, 现在使用tuyaOS 3.8.1 开发, 调用接口:tuya_iot_wf_gw_fast_unactive(GWCM_SPCL_MODE, WF_START_SMART_FIRST); 返回错误, 重置不了WiFi,该接口在tuyaOS 3.8.1 还能继续使用吗?问题见附件

Last edited by Natural on 2023年 Oct 17日 11:22, edited 1 time in total.
Natural
Posts: 22

Re: 【求助】关于TuyaOS 开发重置网络的问题

图片上传不了,怎么看不到那个“置于文中” 按钮了, 报错内容如下:
[01-01 00:00:00 ty E][lr:0x8b3c5] wd_protected_read fails gw_wsm -23
[01-01 00:00:00 ty D][lr:0x8b789] gw_wsm read ret:-23
[01-01 00:00:00 ty E][tuya_wifi_reset.c:498] ret:-23
[01-01 00:00:00 ty E][lr:0x8b3c5] wd_protected_read fails gw_wsm -23
[01-01 00:00:00 ty D][lr:0x8b789] gw_wsm read ret:-23
[01-01 00:00:00 ty D][lr:0xaf771] nc_tp in flash read failed
[01-01 00:00:00 ty E][tuya_wifi_reset.c:501] ret:-23
[01-01 00:00:00 ty E][lr:0xafed1] write wf start mode err:-23
[01-01 00:00:00 ty D][lr:0x8968f] [4][34]:{"ts":0,"dt":4,"tp":3,"s":0,"r":0}
[01-01 00:00:00 ty D][lr:0x8954d] index:1 offset:-1, -2, -3, -4
[01-01 00:00:00 ty D][lr:0x895d9] [4]'s offset is update to 3072
[01-01 00:00:00 ty E][tuya_devos_data.c:297] ret:-23
[01-01 00:00:00 ty E][lr:0x89759] data update ret:-2
[01-01 00:00:00 ty N][lr:0x87211] gw reset called. type:2 lazy:1
[01-01 00:00:00 ty E][lr:0x8b3c5] wd_protected_read fails gw_wsm -23
[01-01 00:00:00 ty D][lr:0x8b789] gw_wsm read ret:-23
[01-01 00:00:00 ty E][tuya_devos_reset.c:36] ret:-23

yingtao_33
Posts: 229

Re: 【求助】关于TuyaOS 开发重置网络的问题

你这个调用时机是在KV初始化之前还是在KV初始化之后?

Post Reply