Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facing crash in example: mqtt_secure_publish. #31

Open
taralshah1234 opened this issue Apr 11, 2018 · 0 comments
Open

Facing crash in example: mqtt_secure_publish. #31

taralshah1234 opened this issue Apr 11, 2018 · 0 comments

Comments

@taralshah1234
Copy link

  • I am using mqtt_secure_publish example to publish data to cloud. After booting it connects to wifi, connects to cloud and then publish data to it. When it try to publish data, it says data published successfully, but actually it doesnt publish, I verified it. Next time also it says the same. But then it suddenly says publish failed and soon it crashes with mentioned log below.

  • So in short it says it connects to cloud, but it can't publish data single time even.

  • On the other way i already tried publishing via msosqquito command line on my linux host and it publishes perfectly. So issue is on the esp32 side. Can any one help to fix this 2 issues?

  • [1] Actually publishing data

  • [2] Avoiding this crash.

  • I have properly configred cloud details and certificates already. Because on the subscription example it works perfectly and shows received data from cloud.
    Thanks in advance for your precious support and time.
    Log:
    I (128991) MQTTS: Starting again!
    I (128991) MQTTS: Connected to AP
    I (128991) MQTTS: Start MQTT Task ...
    I (128991) MQTTS: NetworkConnect mqtt.evrythng.com:8883 ...
    I (129001) MQTTmbedtls: Connecting to mqtt.evrythng.com:8883...
    I (129661) MQTTmbedtls: Connected.
    I (132221) MQTTS: MQTTClientInit ...
    I (132231) MQTTS: MQTTConnect ...
    I (132861) MQTTS: MQTTPublish ... [{"value": 1}]
    I (132871) MQTTS: MQTTPublish SUCCESS: 0
    I (132871) MQTTS: 30...
    I (142871) MQTTS: 20...
    I (152871) MQTTS: 10...
    I (162871) MQTTS: 0...
    I (163871) MQTTS: MQTTPublish ... [{"value": 1}]
    I (163871) MQTTS: MQTTPublish SUCCESS: 0
    I (163871) MQTTS: 30...
    I (173871) MQTTS: 20...
    I (183871) MQTTS: 10...
    I (193871) MQTTS: 0...
    I (194871) MQTTS: MQTTPublish ... [{"value": 1}]
    I (194871) MQTTS: MQTTPublish not SUCCESS: -1
    I (194871) MQTTmbedtls: NetworkDisconnect
    I (194871) MQTTS: 60...
    I (204871) MQTTS: 50...
    I (214871) MQTTS: 40...
    I (224871) MQTTS: 30...
    I (234871) MQTTS: 20...
    I (244871) MQTTS: 10...
    I (254871) MQTTS: 0...
    I (255871) MQTTS: Starting again!
    I (255871) MQTTS: Connected to AP
    I (255871) MQTTS: Start MQTT Task ...
    I (255871) MQTTS: NetworkConnect mqtt.evrythng.com:8883 ...
    I (255881) MQTTmbedtls: Connecting to mqtt.evrythng.com:8883...
    I (256541) MQTTmbedtls: Connected.
    Guru Meditation Error: Core 0 panic'ed (StoreProhibited)
    . Exception was unhandled.
    Core 0 register dump:
    PC : 0x40081448 PS : 0x00060633 A0 : 0x80081498 A1 : 0x3ffc0ab0
    0x40081448: timer_remove at /home/taral/esp/esp-idf/components/esp32/./esp_timer.c:400

A2 : 0x3ffc6288 A3 : 0x0000000b A4 : 0x00000003 A5 : 0x3ffc5bac
A6 : 0x0000000c A7 : 0x0000000c A8 : 0x000000ff A9 : 0x00000001
A10 : 0x00008cc3 A11 : 0x00008cc3 A12 : 0x00000048 A13 : 0x3ffb750e
A14 : 0x3ffc5bac A15 : 0x00000000 SAR : 0x00000018 EXCCAUSE: 0x0000001d
EXCVADDR: 0x0000011b LBEG : 0x4000c46c LEND : 0x4000c477 LCOUNT : 0xffffffff

Backtrace: 0x40081448:0x3ffc0ab0 0x40081495:0x3ffc0ad0 0x40088e93:0x3ffc0af0 0x4010ca55:0x3ffc0b10 0x4010d1e1:0x3ffc0be0 0x401160ed:0x3ffc0c00 0x4008676e:0x3ffc0c50
0x40081448: timer_remove at /home/taral/esp/esp-idf/components/esp32/./esp_timer.c:400

0x40081495: esp_timer_stop at /home/taral/esp/esp-idf/components/esp32/./esp_timer.c:400

0x40088e93: ets_timer_disarm at /home/taral/esp/esp-idf/components/esp32/./ets_timer_legacy.c:106

0x4010ca55: sta_input at ??:?

0x4010d1e1: sta_rx_cb at ??:?

0x401160ed: ppRxPkt at ??:?

0x4008676e: ppTask at ??:?

Rebooting...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant