SmingRTOS icon indicating copy to clipboard operation
SmingRTOS copied to clipboard

Remove this line to get MqttClient_Hello to work

Open helpme1 opened this issue 8 years ago • 2 comments

I tried out the sample app MqttClient_Hello. At first, ESP8266 keeps resetting itself. To finally get it to work, the following line in init() has to be commented out.

commandHandler.registerSystemCommands();

I am not sure why exactly. Perhaps the experts can advise.

helpme1 avatar Aug 18 '16 06:08 helpme1

The MQTT sample code seems puzzlingly fragile. I made simple changes such as WIFI_SSID and WIFI_PWD. After download, the constant resetting returns. Below are the sample error.

 ets Jan  8 2013,rst cause:4, boot mode:(3,7)

wdt reset

load 0x40100000, len 27284, room 16 

tail 4

chksum 0x3f

load 0x3ffe8000, len 944, room 4 

tail 12

chksum 0x4f

ho 0 tail 12 room 4

load 0x3ffe83b0, len 5032, room 12 

tail 12

chksum 0x3a

csum 0x3a

f r-1, Fatal exception (9): 

epc1=0x401061d9

epc2=0x00000000

epc3=0x40100110

epcvaddr=0x00000001

depc=0x00000000

rtn_add=0x4020ac24


helpme1 avatar Aug 18 '16 09:08 helpme1

@helpme1 : I retested the mqtt_client and had no issues at all using it. Are you sure your powersupply is OK as these kind of resets cab also be caused by that.

hreintke avatar Aug 20 '16 10:08 hreintke