MCUXpresso SDK API Reference Manual  Rev. 0
NXP Semiconductors
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
MQTT task configuration parameters.

The maximum time in ticks for which the MQTT task is permitted to block. More...

Overview

The MQTT task blocks until the user initiates any action or until it receives any data from the broker. This macro controls the maximum time the MQTT task can block. It should be set to a small number for the platforms which do not have any mechanism to wake up the MQTT task whenever data is received on a connected socket. This ensures that the MQTT task keeps waking up frequently and processes the publish messages received from the broker, if any.

If the platform's secure_sockets layer supports SOCKETS_SO_WAKEUP_CALLBACK i.e. the MQTT task can wake up whenever data is received on a connected socket, this value should be set to maximum value: #define #define mqttconfigMQTT_TASK_MAX_BLOCK_TICKS ( ~( ( uint32_t ) 0 ) )

If the platform's secure_sockets layer does not support SOCKETS_SO_WAKEUP_CALLBACK i.e. the MQTT task cannot wake up whenever data is received on a connected socket, this value should be set to a small number: #define mqttconfigMQTT_TASK_MAX_BLOCK_TICKS ( 100 )