I am sending data from arduino to Esp as below
At Esp Side Receiving the data:
But now I want to convert BE(0) and BE(1) to String.
How Do I do that?
B4X:
Private Sub Timer1_Tick
'Dim FixedValue As String=80
Dim humid(),temp() As Byte
humid="33.39"
temp="77.99"
Astrem.Write(ser.ConvertArrayToBytes(Array(humid,temp)))
Log("Send to Esp8266 Successfully!!")
End Sub
At Esp Side Receiving the data:
B4X:
Private Sub Arduino_Received_Data(buffer() As Byte)
ser.ConvertBytesToArray(buffer,BE)
Log("Humid from Ardiono :",BE(0)) <---- I am able to see the value recd from Arduino
Log("Temp from Arduino :",BE(1)) <---- I am able to see the value recd from Arduino
But now I want to convert BE(0) and BE(1) to String.
How Do I do that?
B4X:
dim humiditytosend,temperaturetosend As byte
dim bc as byteconverter
<Next I am lost....>