B4RSerializator problem.

Discussion in 'Forum Discussion' started by dragonguy, Apr 21, 2017.

Thread Status:
Not open for further replies.
  1. dragonguy

    dragonguy Active Member Licensed User

    i try using B4RSerializator send object between wemos and android phone

    android code:
    Code:
    Sub btn_send_Click
    Starter.astream.Write(Starter.ser.ConvertArrayToBytes(
    Array("Testing")))
    End Sub
    wemos code:
    Code:
    Private Sub Astream_NewData (Buffer() As Byte)
    Log("buffer-",Buffer)
    Dim be(10As 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:
    Code:
    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
    plese help me.
     
  2. Cableguy

    Cableguy Expert Licensed User

    Try to increase the stack buffer value to 1000 and see if it helps
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    Please start a new thread in B4R questions forum.
     
Thread Status:
Not open for further replies.
Loading...