Description
Hardware:
Board: ESP32 Dev Module
Core Installation/update date: 11/jul/2017
IDE name: Platform.io
Flash Frequency: 40Mhz
Upload Speed: 115200
Description:
I have a guru meditation error
Decoded Stack Trace is here:
0x400d9a34: WiFiClientRxBuffer::fillBuffer() at ?? line ?
0x400d9a34: WiFiClientRxBuffer::fillBuffer() at ?? line ?
0x400d9ad4: WiFiClientRxBuffer::read(unsigned char*, unsigned int) at ?? line ?
0x4016ff8e: aws_iot_mqtt_internal_write_len_to_buffer at ?? line ?
0x400e0401: Print::printf(char const*, ...) at ?? line ?
0x400e042d: Print::println() at ?? line ?
0x400dba32: Preferences::getString(char const*, String) at ?? line ?
0x400d60e6: doOTA() at ?? line ?
0x400d39e0: EventsIncoming::handleOTAUpdateEvent(String) at ?? line ?
0x400d3532: mySubCallBackHandler(String, String) at ?? line ?
0x400d22f6: iot_subscribe_callback_handler(_Client*, char*, unsigned short, IoT_Publish_Message_Params*, void*) at ?? line ?
0x400d8292: aws_iot_mqtt_internal_cycle_read at ?? line ?
0x400d8d39: aws_iot_mqtt_resubscribe at ?? line ?
0x400d1e5d: _flash_cache_start at ?? line ?
The code is kinda huge to paste here so i'm gonna give the pseudo code here
- Subscribe it AWS IOT
- On MQTT message store S3 path and bucket
- In loop if the message from MQTT has arrived then start OTA update similar to
https://github.com/espressif/arduino-esp32/blob/master/libraries/Update/examples/AWS_S3_OTA_Update/AWS_S3_OTA_Update.ino