Hello, I have created a project that through Mqtt connects an app B4A, B4J and B4R. Ve versions B4A and B4J work perfectly using the B4xSerializator.
With B4R I have problems, I connect to the Broker Mqtt without problems, but I do not receive data, as I cannot transform the Payload into an Object of received data.
I tried with the B4RSerializator.bas module, but it gives me error in the imported module.
Thanks Marco
With B4R I have problems, I connect to the Broker Mqtt without problems, but I do not receive data, as I cannot transform the Payload into an Object of received data.
I tried with the B4RSerializator.bas module, but it gives me error in the imported module.
B4X:
Sub Mqtt_MessageArrived (Topic As String, Payload() As Byte)
Type TipoRX (VAlore1 As String, Valore2 As String, Valore3 As String)
Dim ValTypeRx As TipoRX
Dim data() As Object = Serzt.ConvertBytesToArray(Payload,data)
ValTypeRx ????
.....
End Sub
Thanks Marco