Azure / azure-iot-arduino

Azure IoT library for the Arduino
Other
167 stars 96 forks source link

LoadProhibitedCause when trying to send message to IoT Hub #100

Closed joecoolish closed 4 years ago

joecoolish commented 4 years ago

I'm trying to deploy this example onto my WS8266: https://github.com/Azure-Samples/iot-hub-SparkFun-ThingDev-client-app.git

It compiles just fine, but when I run it I get the following output

connected with (NO SSID), channel 6
dhcp client start...
ip:192.168.1.171,mask:255.255.255.0,gw:192.168.1.1
Connected to wifi (NO SSID).
Fetched NTP epoch time is: 28811.
...
IoTHubClient accepted the message for delivery.
dowork TLSIO_STATE_OPENING_WAITING_DNS
dowork TLSIO_STATE_OPENING_WAITING_SOCKET
dowork TLSIO_STATE_OPENING_WAITING_SSL
pm open,type:2 0
Received 4 bytes
Received 7 bytes
Received 64 bytes
Received 20 bytes
Fatal exception 28(LoadProhibitedCause):
epc1=0x4021c94e, epc2=0x00000000, epc3=0x00000000, excvaddr=0x00000000, depc=0x00000000

Exception (28):
epc1=0x4021c94e epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

>>>stack>>>

ctx: cont
sp: 3ffff970 end: 3fffffc0 offset: 01a0
3ffffb10:  3fff9690 00000000 3ffffb70 40219f6d  
3ffffb20:  00002000 3fff952c 00002000 0000a000  
3ffffb30:  3ffe8308 00000000 00002000 4021f6fd 
…

Then the board reboots and starts over again. Is there something I didn't configure properly?

jbobotek commented 4 years ago

Very likely. Please follow these setup instructions for ESP8266 boards: https://github.com/Azure/azure-iot-pal-arduino/blob/master/build_all/base-libraries/AzureIoTHub/README.md#esp8266

jbobotek commented 4 years ago

Let me know if following those steps helped. If no response within a week, I will consider this resolved.