Hi Erel,
1. I found that jMQTT library did not support client to set up LWT (Last Will Testment)
2. I've setup a client (MQTT-Spy running on my NB computer) to publish message with
a last will message> Will-Topic: 'LastWill/Sensor1' Will-Payload: 'sensor lost contact'
3. Then I created a situation(unplug RJ45 cable) to simulate network error to
cause Broker to publish Last will message
4. In my B4A android device, I've subscribe this topic(modify MQTTCanvas sample)
5. When KeepAlive interval timeout, MQTTCanvas received a message callback,
but it prompts Error Occurred
---------------------------------------------------------------------
An error has occurred in sub:main_mqtt_messagearrived(java
line: 487)
java io.IOException
Continue?
I found the error line 487 in b4a java source code which is
......
//BA.debugLineNum = 83;BA.debugLine="obj = serializator.ConvertBytesToObject(Payload)";
_obj = _serializator.ConvertBytesToObject(_payload);
....
Did I miss something? Please help.
Best Regards,
Victor