Comments (1)
  • Add a Comment
  • Edit
  • More Actions v
  • Quarantine this Entry

1 SaradhiIndurthi commented Permalink

There is a minor problem in the code which I figured out by examining <br /> the network packets of your program and the standard ibm provided gui <br /> wmqtt.jar. <br /> The disconnectMessage should have the first byte properly filled as E0 <br /> and not 0E. And since E0 falls out of the byte domain, it has to be <br /> represented as a negative number in 2's complement form something like <br /> this. After this fix, the server did not give any error message. <div>&nbsp;</div> byte[] disconnectMessage = { -0x7F+0x5F //Disconnect <br /> , 0x00 <br /> };