当前位置:网站首页>Learning Tai Chi Maker - mqtt Chapter 2 (V) heartbeat mechanism

Learning Tai Chi Maker - mqtt Chapter 2 (V) heartbeat mechanism

2022-06-28 04:55:00 xuechanba

Video link :https://www.bilibili.com/video/BV18t4y1k7Eb/?spm_id_from=autoNext&vd_source=b91967c499b23106586d7aa35af46413

The data link :http://www.taichi-maker.com/homepage/esp8266-nodemcu-iot/iot-tuttorial/mqtt-tutorial/2-5-keep-alive/

In the hospital , The doctor uses the heartbeat to determine whether the patient still has vital signs . about MQTT For the server , It has to judge one MQTT Whether the client is still connected can check whether the client often sends messages to the server . If you often receive messages from the client , So no problem , This client must be online .

But some clients do not often send messages to the server . For this client , The server can use a method similar to heartbeat detection , To determine whether the client is online .

 Insert picture description here

If you use MQTT.fx The software sets the heartbeat interval , How to set it ?

Click on the gear icon

 Insert picture description here

 Insert picture description here

原网站

版权声明
本文为[xuechanba]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/179/202206280424123539.html