Update the MQTT keep-alive demo to use a mocked timer-query function (#369)

Because we would like to show an example of how the coreMQTT library is used without an actual timer query function, the keep-alive demo is updated to used a mocked function that always returns 0. As such, MQTT_ReceiveLoop must be passed a timeout of 0 so that it runs for exactly 1 iteration. Therefore, MQTT_ReceiveLoop is called repeatedly until an acknowledgement packet from the broker is received or the maximum iterations are reached.
This commit is contained in:
Oscar Michael Abrina
2020-10-30 18:16:36 -07:00
committed by GitHub
parent 58adeb2c0f
commit 5a8f03b633