@@ -183,7 +183,7 @@ static void writable_property_received_cb(AZURE_IOT_NX_CONTEXT* nx_context,
183183 status = nx_azure_iot_json_reader_token_int32_get (json_reader_ptr , & telemetry_interval );
184184 if (status == NX_AZURE_IOT_SUCCESS )
185185 {
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 );
187187
188188 // Confirm reception back to hub
189189 azure_nx_client_respond_int_writable_property (
@@ -209,7 +209,7 @@ static void property_received_cb(AZURE_IOT_NX_CONTEXT* nx_context,
209209 status = nx_azure_iot_json_reader_token_int32_get (json_reader_ptr , & telemetry_interval );
210210 if (status == NX_AZURE_IOT_SUCCESS )
211211 {
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 );
213213 azure_nx_client_periodic_interval_set (nx_context , telemetry_interval );
214214 }
215215 }
@@ -219,9 +219,9 @@ static void properties_complete_cb(AZURE_IOT_NX_CONTEXT* nx_context)
219219{
220220 // Device twin processing is done, send out property updates
221221 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);
222223 azure_iot_nx_client_publish_int_writable_property (
223224 nx_context , NULL , TELEMETRY_INTERVAL_PROPERTY , telemetry_interval );
224- azure_iot_nx_client_publish_bool_property (nx_context , NULL , LED_STATE_PROPERTY , false);
225225
226226 printf ("\r\nStarting Main loop\r\n" );
227227}
0 commit comments