Search found 4 matches

by aztech2017
Tue Jun 27, 2017 2:13 am
Forum: ESP-IDF
Topic: Deep sleep with AWS IOT
Replies: 2
Views: 4846

Re: Deep sleep with AWS IOT

Hi, Thanks for your quick reply. I tried to combine two ESP32 examples together. I put esp_deep_sleep function inside aws_iot_task: while((NETWORK_ATTEMPTING_RECONNECT == rc || NETWORK_RECONNECTED == rc || SUCCESS == rc)) { //Max time the yield function will wait for read messages rc = aws_iot_mqtt_...
by aztech2017
Mon Jun 26, 2017 1:43 am
Forum: ESP-IDF
Topic: Deep sleep withe aws iot connecton
Replies: 2
Views: 5261

Re: Deep sleep withe aws iot connecton

Hi, Thanks for your quick reply. I tried to combine two examples together. I put esp_deep_sleep function inside aws_iot_task: while((NETWORK_ATTEMPTING_RECONNECT == rc || NETWORK_RECONNECTED == rc || SUCCESS == rc)) { //Max time the yield function will wait for read messages rc = aws_iot_mqtt_yield(...
by aztech2017
Fri Jun 23, 2017 1:47 pm
Forum: ESP-IDF
Topic: Deep sleep withe aws iot connecton
Replies: 2
Views: 5261

Deep sleep withe aws iot connecton

Hi,
I am working on a project to send a message to aws iot every 20sec. Esp32 need to be in deep sleep and then wakeup in between.
However, I kept getting stack overflow error. Is there an example how to do this

Thank you!
by aztech2017
Fri Jun 23, 2017 6:11 am
Forum: ESP-IDF
Topic: Deep sleep with AWS IOT
Replies: 2
Views: 4846

Deep sleep with AWS IOT

Hi, I am experimenting deep sleep function with AWS IOT. The idea is to send a MQTT message to AWS when a GPIO is trigger and then fall back into deep sleep mode. However, I kept getting "stack overflow" error when I am calling this inside switch cases: rc = aws_iot_mqtt_init(&client, &mqttInitParam...