Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix out of order PUBACK and PUBLISH handling
The current implementation uses task notification to wait for acknowledgements and incoming publishes and therefore, cannot differentiate between acknowledgements and incoming publishes. This causes a crash when an incoming PUBLISH is received before PUBACK for the previous outgoing publish. This commit uses an event group to wait for acknowledgements and incoming publishes. This allows us to differentiate between acknowledgements and incoming publishes by waiting for different bits. This was reported here - FreeRTOS#63. Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
- Loading branch information