Now, we will check what happens when the MQTT client that controls the vehicle disconnects unexpectedly from the MQTT server and our vehicle remote control application disconnects unexpectedly, too. Pay attention to all the steps because we will manually interrupt the execution of both programs to understand a specific problem that we will solve by taking advantage of the last will and testament feature combined with the retained flag value.
Execute the following line to start the vehicle remote control example on any computer or device that you want to use as the MQTT client and uses Linux ...