Ignore:
Timestamp:
Jun 22, 2021, 9:00:19 PM (3 years ago)
Author:
coas-nagasima
Message:

WolfSSLとAzure IoT SDKを更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • azure_iot_hub_f767zi/trunk/azure_iot_sdk/iothub_client/src/iothub_client_core.c

    r457 r464  
    2626
    2727#define DO_WORK_FREQ_DEFAULT 1
     28#define DO_WORK_MAXIMUM_ALLOWED_FREQUENCY 100
    2829
    2930struct IOTHUB_QUEUE_CONTEXT_TAG;
     
    17221723            {
    17231724                /* 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)
    17251726                {
    17261727                    /* Codes_SRS_IOTHUBCLIENT_41_004: [ If `currentMessageTimeout` is not greater than `do_work_freq_ms`, `IotHubClientCore_SetOption` shall return `IOTHUB_CLIENT_INVALID_ARG` ]*/
     
    17401741                {
    17411742                    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);
    17431744                }
    17441745            }
Note: See TracChangeset for help on using the changeset viewer.