Microsoft Azure IoTHub client AMQP transport
Dependents: sht15_remote_monitoring RobotArmDemo iothub_client_sample_amqp iothub_client_sample_amqp ... more
This library implements the AMQP transport for Microsoft Azure IoTHub client. The code is replicated from https://github.com/Azure/azure-iot-sdks
Diff: iothubtransport_amqp_device.c
- Revision:
- 54:830550fef7ea
- Parent:
- 53:e21e1e88460f
- Child:
- 56:8704100b3b54
--- a/iothubtransport_amqp_device.c Mon Jun 11 15:38:09 2018 -0700 +++ b/iothubtransport_amqp_device.c Tue Jun 26 19:13:11 2018 -0700 @@ -496,6 +496,7 @@ new_config->on_state_changed_callback = config->on_state_changed_callback; new_config->on_state_changed_context = config->on_state_changed_context; new_config->device_id = IoTHubClient_Auth_Get_DeviceId(config->authorization_module); + new_config->module_id = IoTHubClient_Auth_Get_ModuleId(config->authorization_module); result = RESULT_OK; } @@ -514,6 +515,7 @@ DEVICE_CONFIG *device_config = device_instance->config; auth_config->device_id = device_config->device_id; + auth_config->module_id = device_config->module_id; auth_config->iothub_host_fqdn = device_config->iothub_host_fqdn; auth_config->on_error_callback = on_authentication_error_callback; auth_config->on_error_callback_context = device_instance; @@ -573,6 +575,7 @@ TELEMETRY_MESSENGER_CONFIG messenger_config; messenger_config.device_id = instance->config->device_id; + messenger_config.module_id = instance->config->module_id; messenger_config.iothub_host_fqdn = instance->config->iothub_host_fqdn; messenger_config.on_state_changed_callback = on_messenger_state_changed_callback; messenger_config.on_state_changed_context = instance; @@ -597,6 +600,7 @@ twin_msgr_config.client_version = instance->config->product_info; twin_msgr_config.device_id = instance->config->device_id; + twin_msgr_config.module_id = instance->config->module_id; twin_msgr_config.iothub_host_fqdn = instance->config->iothub_host_fqdn; twin_msgr_config.on_state_changed_callback = on_twin_messenger_state_changed_callback; twin_msgr_config.on_state_changed_context = (void*)instance; @@ -1169,7 +1173,7 @@ result = __FAILURE__; } else - { + { // Codes_SRS_DEVICE_09_058: [If no failures occur, device_send_event_async shall return 0] result = RESULT_OK; }