i try using B4RSerializator send object between wemos and android phone
android code:
wemos code:
but i got these error:
sorry that i post wrong place, i repost my question here,
hope you guys help me solve my problem.
Thanks.
android code:
B4X:
Sub btn_send_Click
Starter.astream.Write(Starter.ser.ConvertArrayToBytes(Array("Testing")))
End Sub
wemos code:
B4X:
Private Sub Astream_NewData (Buffer() As Byte)
Log("buffer-",Buffer)
Dim be(10) As Object
Dim data() As Object = ser.ConvertBytesToArray(Buffer,be)
If data.Length = 0 Then Return
Log("Received: ")
For Each o As Object In data
Log(o)
Next
Dim test as string
test=bc.StringFromBytes(data(0))
log(test)
End Sub
but i got these error:
B4X:
buffer-~Testing
Exception (9):
epc1=0x4020290e epc2=0x00000000 epc3=0x00000000 excvaddr=0x3fff0f2b depc=0x00000000
sp: 3ffef850 end: 3ffefb60 offset: 01a0
>>>stack>>>
3ffef9f0: 00000001 00000000 00000003 401074e4
3ffefa00: 40224cce 02ae9476 00002200 00000014
3ffefa10: 3fff0f30 3ffee958 3ffee590 40203c3e
3ffefa20: 3fff0f27 3fffda65 3ffeeb34 0000000c
................<<<stack<<<
ets Jan 8 2013,rst cause:2, boot mode:(3,7)
load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v10e0c112
~ld
sorry that i post wrong place, i repost my question here,
hope you guys help me solve my problem.
Thanks.