1 Answer
- Newest
- Most votes
- Most comments
1
MQTT does not have a time synchronization protocol, hence AWS IOT Core can only consider the order in which the packets arrive to the gateway. In the case you describe, this will happen:
- F sends CONNECT
- L sends CONNECT
- L CONNECT is received by AWS IoT Core, hence L is now connected
- F CONNECT is received (same clientId as L). AWS IoT Core disconnects L and F is now connected
- L receives a DISCONNECT message.
- L reconnects
- F is disconnected
- F should know (according to your internal protocol) that L has taken over the connection, and should not reconnect
Relevant content
- Accepted Answerasked 2 years ago
- Accepted Answerasked 7 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 10 months ago