We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A connected client can send a PINGREQ and get a PINGRESP back to make sure the connection is alive.
PINGREQ PINGRESP
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");
The text was updated successfully, but these errors were encountered:
yrlacornelia
hannastigland
Successfully merging a pull request may close this issue.
Problem Description
A connected client can send a PINGREQ and get a PINGRESP back to make sure the connection is alive.
PINGREQ
PINGRESP
The text was updated successfully, but these errors were encountered: