Azure IoT / iothub_amqp_transport

Dependents:   sht15_remote_monitoring RobotArmDemo iothub_client_sample_amqp iothub_client_sample_amqp ... more

Files at this revision

API Documentation at this revision

Comitter:
AzureIoTClient
Date:
Fri Jul 28 09:51:42 2017 -0700
Parent:
37:abd16824f63b
Child:
39:e98d5df6dc74
Commit message:
1.1.20

Changed in this revision

iothubtransport_amqp_common.c Show annotated file Show diff for this revision Revisions of this file
--- a/iothubtransport_amqp_common.c	Fri Jun 30 10:40:33 2017 -0700
+++ b/iothubtransport_amqp_common.c	Fri Jul 28 09:51:42 2017 -0700
@@ -1676,11 +1676,6 @@
             is_device_specific_option = true;
             transport_instance->option_send_event_timeout_secs = *(size_t*)value;
         }
-        else if (strcmp(OPTION_C2D_KEEP_ALIVE_FREQ_SECS, option) == 0)
-        {
-            is_device_specific_option = false;
-            transport_instance->c2d_keep_alive_freq_secs = *(size_t*)value;
-        }
         else
         {
             is_device_specific_option = false;
@@ -1699,6 +1694,11 @@
                 result = IOTHUB_CLIENT_OK;
             }
         }
+        else if (strcmp(OPTION_C2D_KEEP_ALIVE_FREQ_SECS, option) == 0)
+        {
+            transport_instance->c2d_keep_alive_freq_secs = *(size_t*)value;
+            result = IOTHUB_CLIENT_OK;
+        }
         // Codes_SRS_IOTHUBTRANSPORT_AMQP_COMMON_09_104: [If `option` is `logtrace`, `value` shall be saved and applied to `instance->connection` using amqp_connection_set_logging()]
         else if (strcmp(OPTION_LOG_TRACE, option) == 0)
         {