diff --git a/esp32c3/core/SOC量产及远程升级文件/ESP32C3/sms_to_wifi_1.0.0_LuatOS-SoC_V1007_ESP32C3_USB.ota b/esp32c3/core/SOC量产及远程升级文件/ESP32C3/sms_to_wifi_1.0.0_LuatOS-SoC_V1007_ESP32C3_USB.ota new file mode 100644 index 0000000..e074356 Binary files /dev/null and b/esp32c3/core/SOC量产及远程升级文件/ESP32C3/sms_to_wifi_1.0.0_LuatOS-SoC_V1007_ESP32C3_USB.ota differ diff --git a/esp32c3/core/SOC量产及远程升级文件/ESP32C3/sms_to_wifi_1.0.0_LuatOS-SoC_V1007_ESP32C3_USB.soc b/esp32c3/core/SOC量产及远程升级文件/ESP32C3/sms_to_wifi_1.0.0_LuatOS-SoC_V1007_ESP32C3_USB.soc new file mode 100644 index 0000000..d255608 Binary files /dev/null and b/esp32c3/core/SOC量产及远程升级文件/ESP32C3/sms_to_wifi_1.0.0_LuatOS-SoC_V1007_ESP32C3_USB.soc differ diff --git a/esp32c3/script/main.lua b/esp32c3/script/main.lua index bd8d696..dc19c32 100644 --- a/esp32c3/script/main.lua +++ b/esp32c3/script/main.lua @@ -36,13 +36,13 @@ led_helper.blink_status_led(config.LED_BLINK_DURATION.initializing) sys.taskInit(function() local logging_tag = "main - 初始化网络" fskv.init() + wlan.init() if fskv.kv_get("hostname") then wlan.hostname(fskv.kv_get("hostname")) else local mac = wlan.getMac() wlan.hostname("weiguo_" .. mac) end - wlan.init() if fskv.kv_get("wlan_ssid") then wlan.connect(fskv.kv_get("wlan_ssid"), fskv.kv_get("wlan_passwd")) return @@ -112,7 +112,7 @@ local function loop_cs() for index, value in ipairs(config.CS_GPIO) do gpio.setup(value, 0, gpio.PULLDOWN) end - log.info("轮巡设备", air780_helper.cs_index," GPIO",config.CS_GPIO[air780_helper.cs_index]) + -- log.info("轮巡设备", air780_helper.cs_index," GPIO",config.CS_GPIO[air780_helper.cs_index]) gpio.set(config.CS_GPIO[air780_helper.cs_index], gpio.HIGH) air780_helper.cs_index = air780_helper.cs_index + 1 end