s60sc / esp32-tuya_device Goto Github PK
View Code? Open in Web Editor NEWReplace Tuya device wifi module with ESP32-C3
License: GNU Affero General Public License v3.0
Replace Tuya device wifi module with ESP32-C3
License: GNU Affero General Public License v3.0
I followed the instructions and flashed my esp-c3f using Arduino IDE and it doesn't show up the WiFi. The serial output shows it crashing/looping as follows. (note, I added memory logging to see if it would help - it did not)
It crashes after Starting web server on port: 80
16:49:11.950 -> ESP-ROM:esp32c3-api1-20210207
16:49:11.950 -> Build:Feb 7 2021
16:49:11.996 -> rst:0x3 (RTC_SW_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
16:49:11.996 -> Saved PC:0x4038203e
16:49:11.996 -> SPIWP:0xee
16:49:11.996 -> mode:DIO, clock div:1
16:49:11.996 -> load:0x3fcd5810,len:0x438
16:49:11.996 -> load:0x403cc710,len:0x918
16:49:11.996 -> load:0x403ce710,len:0x25f4
16:49:11.996 -> entry 0x403cc710
16:49:12.228 ->
16:49:12.228 -> [00:03:40.322 ramLogClear] Setup RAM based log
16:49:12.352 -> [00:03:40.324 listFolder] Sketch size 1320kB
16:49:12.352 -> [00:03:40.458 listFolder] LittleFS: Total bytes 131072, Used bytes 16384
16:49:12.352 -> startStorage > Free: heap 244164, block: 225268, pSRAM 0
16:49:12.570 -> [00:03:40.669 loadConfig] Load config
16:49:12.570 -> [00:03:40.670 ERROR @ prefs.cpp:133] Failed to load file /data/configs.txt
16:49:12.570 -> [00:03:40.672 WARN retrieveConfigVal] Key hostName not set
16:49:12.570 -> [00:03:40.682 WARN retrieveConfigVal] Key AP_SSID not set
16:49:12.695 -> [00:03:40.832 setWifiSTA] Wifi Station IP from DHCP
16:49:12.741 -> setWifiSTA > Free: heap 203508, block: 180212, pSRAM 0
16:49:12.912 -> [00:03:41.039 onWiFiEvent] Wifi AP stopped: ESP-TuyaDevice_18AA0333E864
16:49:12.912 -> [00:03:41.040 onWiFiEvent] Wifi AP SSID: ESP-TuyaDevice_18AA0333E864 started, use 'http://192.168.4.1' to connect
16:49:12.959 -> setWifiAP > Free: heap 201396, block: 180212, pSRAM 0
16:49:13.143 -> [00:03:41.250 WARN startWifi] SSID not available, use AP
16:49:19.776 -> [00:03:47.884 startPing] Started ping monitoring
16:49:19.776 -> startPing > Free: heap 191564, block: 172020, pSRAM 0
16:49:19.950 -> [00:03:48.086 startWebServer] Starting web server on port: 80
16:49:19.996 -> startWebserver > Free: heap 182296, block: 163828, pSRAM 0
16:49:20.758 -> ESP-ROM:esp32c3-api1-20210207
16:49:20.758 -> Build:Feb 7 2021
16:49:20.802 -> rst:0x3 (RTC_SW_SYS_RST),boot:0xd (SPI_FAST_FLASH_BOOT)
16:49:20.802 -> Saved PC:0x4038203e
16:49:20.802 -> SPIWP:0xee
16:49:20.802 -> mode:DIO, clock div:1
16:49:20.802 -> load:0x3fcd5810,len:0x438
16:49:20.802 -> load:0x403cc710,len:0x918
16:49:20.802 -> load:0x403ce710,len:0x25f4
16:49:20.802 -> entry 0x403cc710
16:49:21.036 ->
16:49:21.036 -> [00:03:49.134 ramLogClear] Setup RAM based log
16:49:21.161 -> [00:03:49.135 listFolder] Sketch size 1320kB
16:49:21.161 -> [00:03:49.269 listFolder] LittleFS: Total bytes 131072, Used bytes 16384
16:49:21.161 -> startStorage > Free: heap 244164, block: 225268, pSRAM 0
16:49:21.377 -> [00:03:49.481 loadConfig] Load config
16:49:21.377 -> [00:03:49.482 ERROR @ prefs.cpp:133] Failed to load file /data/configs.txt
16:49:21.377 -> [00:03:49.483 WARN retrieveConfigVal] Key hostName not set
16:49:21.377 -> [00:03:49.494 WARN retrieveConfigVal] Key AP_SSID not set
16:49:21.502 -> [00:03:49.644 setWifiSTA] Wifi Station IP from DHCP
16:49:21.549 -> setWifiSTA > Free: heap 203508, block: 180212, pSRAM 0
16:49:21.753 -> [00:03:49.851 onWiFiEvent] Wifi AP stopped: ESP-TuyaDevice_18AA0333E864
16:49:21.753 -> [00:03:49.852 onWiFiEvent] Wifi AP SSID: ESP-TuyaDevice_18AA0333E864 started, use 'http://192.168.4.1' to connect
16:49:21.753 -> setWifiAP > Free: heap 201396, block: 180212, pSRAM 0
16:49:21.925 -> [00:03:50.063 WARN startWifi] SSID not available, use AP
16:49:28.401 -> [00:03:56.499 startPing] Started ping monitoring
16:49:28.401 -> startPing > Free: heap 190936, block: 172020, pSRAM 0
16:49:28.572 -> [00:03:56.702 startWebServer] Starting web server on port: 80
16:49:28.572 -> startWebserver > Free: heap 182296, block: 163828, pSRAM 0
16:49:29.382 -> ESP-ROM:esp32c3-api1-20210207
16:49:29.382 -> Build:Feb 7 2021
Any suggestions would help! Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.