src/main.cpp
/* -- connection_status_callback --
 * Callback method which executes on receipt of a connection status message from the IoT Hub in the cloud.
 */
connection_status_callback
Callback method which executes on receipt of a connection status message from the IoT Hub in the cloud.
connection_status_callback Callback method which executes on receipt of a connection status message from the IoT Hub in the cloud .
static void connection_status_callback(IOTHUB_CLIENT_CONNECTION_STATUS result, IOTHUB_CLIENT_CONNECTION_STATUS_REASON reason, void *user_context)
{
  (void)reason;
  (void)user_context;
  if (result == IOTHUB_CLIENT_CONNECTION_AUTHENTICATED)
  {
    LogInfo("The device client is connected to iothub\r\n");
  }
  else
  {
    LogInfo("The device client has been disconnected\r\n");
  }
}
static void connection_status_callback ( IOTHUB_CLIENT_CONNECTION_STATUS result , IOTHUB_CLIENT_CONNECTION_STATUS_REASON reason , void * user_context ) { ( void ) reason ; ( void ) user_context ; if ( result == IOTHUB_CLIENT_CONNECTION_AUTHENTICATED ) { LogInfo ( " \r \n " ) ; } else { LogInfo ( " \r \n " ) ; } }
connection_status_callback
 Callback method which executes on receipt of a connection status message from the IoT Hub in the cloud.
connection_status_callback Callback method which executes on receipt of a connection status message from the IoT Hub in the cloud .
// This sample DOES NOT take into consideration network outages.