@@ -183,7 +183,7 @@ static void writable_property_received_cb(AZURE_IOT_NX_CONTEXT* nx_context,
183
183
status = nx_azure_iot_json_reader_token_int32_get (json_reader_ptr , & telemetry_interval );
184
184
if (status == NX_AZURE_IOT_SUCCESS )
185
185
{
186
- printf ("\tUpdating %s to %ld\r\n" , TELEMETRY_INTERVAL_PROPERTY , telemetry_interval );
186
+ printf ("Updating %s to %ld\r\n" , TELEMETRY_INTERVAL_PROPERTY , telemetry_interval );
187
187
188
188
// Confirm reception back to hub
189
189
azure_nx_client_respond_int_writable_property (
@@ -209,7 +209,7 @@ static void property_received_cb(AZURE_IOT_NX_CONTEXT* nx_context,
209
209
status = nx_azure_iot_json_reader_token_int32_get (json_reader_ptr , & telemetry_interval );
210
210
if (status == NX_AZURE_IOT_SUCCESS )
211
211
{
212
- printf ("\tUpdating %s to %ld\r\n" , TELEMETRY_INTERVAL_PROPERTY , telemetry_interval );
212
+ printf ("Updating %s to %ld\r\n" , TELEMETRY_INTERVAL_PROPERTY , telemetry_interval );
213
213
azure_nx_client_periodic_interval_set (nx_context , telemetry_interval );
214
214
}
215
215
}
@@ -219,9 +219,9 @@ static void properties_complete_cb(AZURE_IOT_NX_CONTEXT* nx_context)
219
219
{
220
220
// Device twin processing is done, send out property updates
221
221
azure_iot_nx_client_publish_properties (nx_context , DEVICE_INFO_COMPONENT_NAME , append_device_info_properties );
222
+ azure_iot_nx_client_publish_bool_property (nx_context , NULL , LED_STATE_PROPERTY , false);
222
223
azure_iot_nx_client_publish_int_writable_property (
223
224
nx_context , NULL , TELEMETRY_INTERVAL_PROPERTY , telemetry_interval );
224
- azure_iot_nx_client_publish_bool_property (nx_context , NULL , LED_STATE_PROPERTY , false);
225
225
226
226
printf ("\r\nStarting Main loop\r\n" );
227
227
}
0 commit comments