AzureSphere/AzureSphereSampleDevice/main.c
static void TwinReportState(const char *jsonState)
{
    if (iothubClientHandle == NULL) {
        Log_Debug("ERROR: Azure IoT Hub client not initialized.\n");
    } else {
        if (IoTHubDeviceClient_LL_SendReportedState(
                iothubClientHandle, (const unsigned char *)jsonState, strlen(jsonState),
                ReportedStateCallback, NULL) != IOTHUB_CLIENT_OK) {
            Log_Debug("ERROR: Azure IoT Hub client error when reporting state '%s'.\n", jsonState);
        } else {
            Log_Debug("INFO: Azure IoT Hub client accepted request to report state '%s'.\n",
                      jsonState);
        }
    }
}
/// <summary>
///     Enqueues a report containing Device Twin reported properties. The report is not sent
///     immediately, but it is sent on the next invocation of IoTHubDeviceClient_LL_DoWork().
/// </summary>

Enqueues a report containing Device Twin reported properties. The report is not sent
immediately, but it is sent on the next invocation of IoTHubDeviceClient_LL_DoWork().
Enqueues a report containing Device Twin reported properties . The report is not sent immediately but it is sent on the next invocation of IoTHubDeviceClient_LL_DoWork () .
static void TwinReportState(const char *jsonState)
{
    if (iothubClientHandle == NULL) {
        Log_Debug("ERROR: Azure IoT Hub client not initialized.\n");
    } else {
        if (IoTHubDeviceClient_LL_SendReportedState(
                iothubClientHandle, (const unsigned char *)jsonState, strlen(jsonState),
                ReportedStateCallback, NULL) != IOTHUB_CLIENT_OK) {
            Log_Debug("ERROR: Azure IoT Hub client error when reporting state '%s'.\n", jsonState);
        } else {
            Log_Debug("INFO: Azure IoT Hub client accepted request to report state '%s'.\n",
                      jsonState);
        }
    }
}
static void TwinReportState ( const char * jsonState ) { if ( iothubClientHandle == NULL ) { Log_Debug ( " \n " ) ; } else { if ( IoTHubDeviceClient_LL_SendReportedState ( iothubClientHandle , ( const unsigned char * ) jsonState , strlen ( jsonState ) , ReportedStateCallback , NULL ) != IOTHUB_CLIENT_OK ) { Log_Debug ( " \n " , jsonState ) ; } else { Log_Debug ( " \n " , jsonState ) ; } } }
<summary>
Enqueues a report containing Device Twin reported properties.
<summary > Enqueues a report containing Device Twin reported properties .