could you tweak the following docs to include info for Amazon web services.
I am up and running with the tracker-app against AWS and the shadow, but now the topics structures are needed.
Maybe also tweak the tracker app to work against AWS and not only use shadow but also MQTT.
ps
Below my brute-force patch to get rid of json-code and get the tracker app working against AWS
/**@brief Get environment data from sensors and send to cloud. */
static void env_data_send(void)
{
char msg_buf[200];
char number_buffer[26];
int length;
if (env_sensors_get_temperature(&env_data) == 0) {
if ( cloud_is_send_allowed(CLOUD_CHANNEL_TEMP, env_data.value) ) {
strcpy( msg_buf, "{ \"state\": { \"reported\" : { \"temperature1\": \"" );
/* Try 15 decimal places of precision to avoid nonsignificant nonzero digits */
length = snprintf((char*)number_buffer, sizeof(number_buffer), "%1.15g", env_data.value);
strcat( msg_buf, number_buffer );
strcat( msg_buf, "\"} } }");
msg.buf = &msg_buf[0];
msg.len = strlen(msg_buf);
err = cloud_send(cloud_backend, &msg);
// cloud_release_data(&msg);
if (err) {
goto error;
}
}
}
ds