- Timestamp:
- Jun 22, 2021, 9:00:19 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
azure_iot_hub_f767zi/trunk/azure_iot_sdk/iothub_client/src/iothub_client_core.c
r457 r464 26 26 27 27 #define DO_WORK_FREQ_DEFAULT 1 28 #define DO_WORK_MAXIMUM_ALLOWED_FREQUENCY 100 28 29 29 30 struct IOTHUB_QUEUE_CONTEXT_TAG; … … 1722 1723 { 1723 1724 /* Codes_SRS_IOTHUBCLIENT_41_003: [ The value for `OPTION_DO_WORK_FREQUENCY_IN_MS` shall be limited to 100 to follow SDK best practices by not reducing the DoWork frequency below 10 Hz ]*/ 1724 if (0 < * (unsigned int *)value && * (unsigned int *)value <= 100)1725 if (0 < * (unsigned int *)value && * (unsigned int *)value <= DO_WORK_MAXIMUM_ALLOWED_FREQUENCY) 1725 1726 { 1726 1727 /* Codes_SRS_IOTHUBCLIENT_41_004: [ If `currentMessageTimeout` is not greater than `do_work_freq_ms`, `IotHubClientCore_SetOption` shall return `IOTHUB_CLIENT_INVALID_ARG` ]*/ … … 1740 1741 { 1741 1742 result = IOTHUB_CLIENT_INVALID_ARG; 1742 LogError("Invalid value: OPTION_DO_WORK_FREQUENCY_IN_MS cannot exceed 100 ms. If you wish to reduce the frequency further, consider using the LL layer.");1743 LogError("Invalid value: OPTION_DO_WORK_FREQUENCY_IN_MS cannot exceed %d ms. If you wish to reduce the frequency further, consider using the LL layer.", DO_WORK_MAXIMUM_ALLOWED_FREQUENCY); 1743 1744 } 1744 1745 }
Note:
See TracChangeset
for help on using the changeset viewer.