Hi
This is my code to receive message arrive of MQTT . But i getting java.util.zip.ZipException:incorrect header check error at line : ConvertBytesToObject . The reply message is "true" , "false"
Private Sub mqtt_MessageArrived (Topic As String, Payload() As Byte)
Dim obj As Object = serializator.ConvertBytesToObject(Payload)
If obj Is String Then
Dim s As String = obj
Select s
Case "false"
Msgbox("Fail to turn off ","Message")
Case "true"
Msgbox("Success turn off ","Message")
End Select
End If
End Sub
This is my code to receive message arrive of MQTT . But i getting java.util.zip.ZipException:incorrect header check error at line : ConvertBytesToObject . The reply message is "true" , "false"
Private Sub mqtt_MessageArrived (Topic As String, Payload() As Byte)
Dim obj As Object = serializator.ConvertBytesToObject(Payload)
If obj Is String Then
Dim s As String = obj
Select s
Case "false"
Msgbox("Fail to turn off ","Message")
Case "true"
Msgbox("Success turn off ","Message")
End Select
End If
End Sub