|
楼主 |
发表于 2020-6-18 14:59
|
显示全部楼层
本帖最后由 q1127957008 于 2020-6-18 15:12 编辑
大神我把我的账号和密码在eeprom中存储的地址由原来的1280开始存储,改成了从2448开始存储,上电后不重启了,但是在串口输出的时候显示
[35021] MIOT Query All
[35337] need set power state: off
[35442] ERROR: MQTT NOT ALIVE OR MSG LIMIT
[65406] MQTT Ping!
[81781] MIOT Query codes: 0
[81781] MIOT Query All
[82174] need set power state: on
[82281] ERROR: MQTT NOT ALIVE OR MSG LIMIT
[92704] MIOT Query codes: 0
[92704] MIOT Query All
[93115] need set power state: off
[93234] ERROR: MQTT NOT ALIVE OR MSG LIMIT
[123190] MQTT Ping!
[153782] MQTT Ping!
[184373] MQTT Ping!
[214959] MQTT Ping!
[245552] MQTT Ping!
[276160] MQTT Ping!
//#define BLINKER_EEP_ADDR_SSID 1280
#define BLINKER_EEP_ADDR_SSID 2448
#define BLINKER_SSID_SIZE 32
#define BLINKER_EEP_ADDR_PSWD (BLINKER_EEP_ADDR_SSID + BLINKER_SSID_SIZE)
#define BLINKER_PSWD_SIZE 32
#define BLINKER_EEP_ADDR_WLAN_CHECK (BLINKER_EEP_ADDR_PSWD + BLINKER_PSWD_SIZE)
#define BLINKER_WLAN_CHECK_SIZE 3
#define BLINKER_EEP_ADDR_AUUID (BLINKER_EEP_ADDR_WLAN_CHECK + BLINKER_WLAN_CHECK_SIZE)
EEPROM.begin(BLINKER_EEP_SIZE);
EEPROM.get(BLINKER_EEP_ADDR_SSID, loadssid);
EEPROM.get(address, var) address:
EEPROM.get(BLINKER_EEP_ADDR_PSWD, loadpswd);
EEPROM.begin(BLINKER_EEP_SIZE);
EEPROM.put(BLINKER_EEP_ADDR_SSID, loadssid);
EEPROM.put(BLINKER_EEP_ADDR_PSWD, loadpswd);
|
|