-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Problem Description
A connected client can send a PINGREQ and get a PINGRESP back to make sure the connection is alive.
if (buffer[0] == (byte) 0xC0) {
System.out.println("Received MQTT PINGREQ message from client");
byte[] pingrespMessage = new byte[]{(byte) 0xD0, (byte) 0x00};
outputStream.write(pingrespMessage);
outputStream.flush();
System.out.println("Sent MQTT PINGRESP message to client");
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request