$aws/things/<device-name>/ota/update
Code: Select all
{
"state": {
"desired": {
"ota_url":"******.bin"
}
}
}
Code: Select all
jsonStruct_t output_handler;
output_handler.cb = output_state_change_callback;
output_handler.pData = &output_state;
output_handler.dataLength = sizeof(output_state);
output_handler.pKey = "output";
output_handler.type = SHADOW_JSON_BOOL;
rc = aws_iot_shadow_register_delta(&mqttClient, &output_handler);
if (SUCCESS != rc) {
ESP_LOGE(TAG, "Shadow Register State Delta Error %d", rc);
goto aws_error;
}
PROBLEM
-----------
I can't figure out how to get either of these to work for a device that is in deep sleep almost all the time. I tried QOS 1, AWS Jobs, message retention (not available in aws). But I could not figure it out. What 's the normal approach that everyone uses for this problem?