1.2.3.21 SYS_MQTT_Task Function
C
void SYS_MQTT_Task(SYS_MODULE_OBJ obj)
Summary
Executes the MQTT Service State Machine
Description
This function ensures that the MQTT service is able to execute its state machine to process any messages and invoke the user callback for any events.
Precondition
SYS_MQTT_Connect should have been called before calling this function
Parameters
Param | Description |
---|---|
obj | SYS MQTT object handle, returned from SYS_MQTT_Connect |
Returns
None
Example
// Handle "objSysMqtt" value must have been returned from SYS_MQTT_Connect.
while(1)
{
...
SYS_MQTT_Task(objSysMqtt);
...
}