Is there a way to increase the buffer size to more than 100?
Is there a way to know the total received bytes (to know when to store it in a temp buffer)?
I came across Streamtotal and Streamreceived but they give a 0 value when reading these in "astream_NewData". This is probably...
I have a WIT-motion device which give Roll/Pitch/Yaw data via bluetooth HC-06.
11 bytes, start with 0X55 with second byte as data type 0x53 is RPY. Byte 11 is CRC. This is not Prefix mode so I have used a ring buffer to find the data block.
This code working but seems very slow...
- Changed to B4x as the subs can be used in B4A, too
- "Send File" added (new Button to send a file to the other client)
This tutorial is based on Erel's Asyncstreams example: https://www.b4x.com/android/forum/threads/b4x-network-asyncstreams-b4xserializator.72149/
I needed to send a structure from an STM32 running an Arduino core to an Android device using Async Streams in prefix mode over Bluetooth. This snippet should work with the 8 bitters too.
Seems to work for me. Better programmers than me are sure to find holes in it so I am waiting to learn...