Send Heartbeat Packet

Last updated:2026-10-14 11:13:28

Defines the send-heartbeat-packet event as a custom command periodically sent between the client and the server, used to notify the peer of its own status in order to maintain the validity of the TCP long connection and prevent the connection from timing out and disconnecting.

Interface Information

Parameter Value Description
IP 192.168.127.11 Use the corresponding IP within the LAN.
Port 63333 Fixed port.
Connection TCP Uses a TCP long-connection method.
Encoding UTF-8 All data sent and received uses UTF-8 encoding.
Data format JSON Both sending and receiving data use JSON format.

Request Example

{"event":"00","data":"ping"}

Response Result

{"event":"00","data":"pong"}

Request Parameters

Parameter Example Value Data Type Required Description
event 00 string Yes 00 represents the heartbeat-packet event (sent once every 10 seconds).
data ping string Yes Heartbeat-packet identifier.

Response Result

Parameter Example Value Data Type Description
event 00 string 00 represents the heartbeat-packet event (sent once every 10 seconds).
data pong string Heartbeat-packet identifier.

If the device encounters an unsolvable issue during debugging, contact the cloud-printing responsible person for troubleshooting and a resolution. Contact details:

  • Phone: 137-5177-4454 (same number on WeChat)
  • Email: info@ColorPark.cn
UV cloud-printing service provider with deep hardware–software integration ® Ruifengcai