mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-15 16:15:08 -05:00
Adds error messages for AWS demo mqtt helpers + misc fixes (#440)
Switch MQTT helpers to logging error message instead of error code. Adds time parameter to xProccessLoop so defender demo does not wait extra time. Fixes some incorrect returns in metrics_collector.c
This commit is contained in:
parent
9c1efa8d02
commit
79e432738b
4 changed files with 31 additions and 29 deletions
|
|
@ -126,10 +126,12 @@ BaseType_t xPublishToTopic( MQTTContext_t * pxMqttContext,
|
|||
* @brief Invoke the core MQTT library's process loop function.
|
||||
*
|
||||
* @param[in] pxMqttContext The MQTT context for the MQTT connection.
|
||||
* @param[in] ulTimeoutMs Minimum time for the loop to run, if no error occurs.
|
||||
*
|
||||
* @return pdPASS if process loop was successful;
|
||||
* pdFAIL otherwise.
|
||||
*/
|
||||
BaseType_t xProcessLoop( MQTTContext_t * pxMqttContext );
|
||||
BaseType_t xProcessLoop( MQTTContext_t * pxMqttContext,
|
||||
uint32_t ulTimeoutMs );
|
||||
|
||||
#endif /* ifndef MQTT_DEMO_HELPERS_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue