Uploaded September 2017 | Updated September 2026, 3 weeks ago
MQTT uses a TCP/IP connection that is normally left open by the client so that is can send and receive data at any time.
But what happens when or if the connection fails?
To detect a connection failure MQTT uses a ping system where it sends messages to the broker at a predetermined interval if no messages have been sent after a certain period (KeepALive)
In this tutorial will explain what keep alives are for and we will take a detailed look at PINGREQ and PINGRESP examples.
We will also see what happens when keep alive messages fail.
Tutorial on Website
steves-internet-guide.com/mqtt-keep-alive-by-example
Related videos
Introduction to MQTT
youtu.be/2aHV2Fn0I60
Understanding MQTT Clean Sessions
youtu.be/DwZokX7zcXE
-----------------
Python MQTT Client The Loop and Callbacks explained
youtu.be/o4YhgVLRl2k
If you find these videos useful then you might want to consider buying me a coffee
paypal.me/StepenCope
MQTT uses a TCP/IP connection that is normally left open by the client so that is can send and receive data at any time.
But what happens when or if the connection fails?
To detect a connection failure MQTT uses a ping system where it sends messages to the broker at a predetermined interval if no messages have been sent after a certain period (KeepALive)
In this tutorial will explain what keep alives are for and we will take a detailed look at PINGREQ and PINGRESP examples.
We will also see what happens when keep alive messages fail.
Tutorial on Website
steves-internet-guide.com/mqtt-keep-alive-by-example
Related videos
Introduction to MQTT
youtu.be/2aHV2Fn0I60
Understanding MQTT Clean Sessions
youtu.be/DwZokX7zcXE
-----------------
Python MQTT Client The Loop and Callbacks explained
youtu.be/o4YhgVLRl2k
If you find these videos useful then you might want to consider buying me a coffee
paypal.me/StepenCope










