mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-17 10:17:45 -04:00
FreeRTOS_send adds the packet to be sent to the IP task's queue for later processing. The packet is sent later by the IP task. When FreeRTOS is used in collaborative mode (i.e. configUSE_PREEMPTION is 0), the Plaintext_FreeRTOS_send function returns without actually sending the packet as the IP task never gets a chance to run. The fact that Plaintext_FreeRTOS_send returns without actually sending the packet causes an issue in the MQTT_Connect which expects the CONNECT packet to be actually sent and waits for CONNACK. This commit adds a taskYIELD call after calling FreeRTOS_send to ensure that the IP task gets a chance to run and send the packet before the Plaintext_FreeRTOS_send function returns. |
||
---|---|---|
.. | ||
Application-Protocols | ||
AWS | ||
coreJSON@26fe707548 | ||
corePKCS11@cc4129e5c4 | ||
FreeRTOS-Plus-CLI | ||
FreeRTOS-Plus-IO | ||
FreeRTOS-Plus-TCP@9a25860e76 | ||
FreeRTOS-Plus-Trace | ||
FreeRTOS-Plus-UDP | ||
Reliance-Edge | ||
Utilities | ||
WebDocs.url |