mirror of
https://github.com/FreeRTOS/coreMQTT
synced 2025-05-14 06:10:09 +08:00

Update the sub-section of the Design page of the library API reference to provide detailed information about the role of runtime timeout and compile-time timeout configurations in the behavior of MQTT_Connect, MQTT_ProcessLoop and MQTT_ReceiveLoop functions.
22 lines
509 B
Plaintext
22 lines
509 B
Plaintext
@startuml
|
|
skinparam dpi 300
|
|
skinparam ArrowFontSize 18
|
|
|
|
start
|
|
: Send CONNECT packet;
|
|
: count = 0;
|
|
|
|
repeat
|
|
: Receive single byte;
|
|
repeat while ( No network data available AND \n retry count < MQTT_MAX_CONNACK_RECEIVE_RETRY_COUNT) is (yes)
|
|
-> no or timeout == 0;
|
|
|
|
repeat
|
|
: Get rest of CONNACK packet;
|
|
note left: Retry zero byte reads for maximum period \nof **MQTT_RECV_POLLING_TIMEOUT_MS**
|
|
repeat while( Received complete packet? ) is ( no )
|
|
: Deserialize CONNACK packet;
|
|
stop
|
|
|
|
@enduml
|