I have just started to reuse a program that successfully ran a while ago on a Levono TB- X103F running 6.01
If I send from an ESP32 a multiple array (100 sets with a delay of 5mS between each set) of integers with 4 fields I get a crash of the Bluetooth reception
When the BT reception crashes I always get "Buffer Length 0".
(Oddly enough I can still send for a while until a separate reception watchdog activates)
Tried lots of options with no luck.. When I use WIFI as the connection, and the same send/receive method, no problems...
Any ideas?
The following is the standard B4A reception procedure using prefix mode each end and B4rSerialization
Sub AStream_NewData (Buffer() As Byte)
Log("Buffer Length "& Buffer.length)
Dim Data() As Object = ser.ConvertBytesToArray(Buffer)
If Data.Length = 0 Then Return
Log("From ESP32 "& Data(0) & " "& Data(1) &" " & Data(2) & " " & Data(3)&" "& Data(4))
Do Stuff here....
End Sub
If I send from an ESP32 a multiple array (100 sets with a delay of 5mS between each set) of integers with 4 fields I get a crash of the Bluetooth reception
When the BT reception crashes I always get "Buffer Length 0".
(Oddly enough I can still send for a while until a separate reception watchdog activates)
Tried lots of options with no luck.. When I use WIFI as the connection, and the same send/receive method, no problems...
Any ideas?
The following is the standard B4A reception procedure using prefix mode each end and B4rSerialization
Sub AStream_NewData (Buffer() As Byte)
Log("Buffer Length "& Buffer.length)
Dim Data() As Object = ser.ConvertBytesToArray(Buffer)
If Data.Length = 0 Then Return
Log("From ESP32 "& Data(0) & " "& Data(1) &" " & Data(2) & " " & Data(3)&" "& Data(4))
Do Stuff here....
End Sub