Android Question Adafruit Feather M0

fishwolf

Well-Known Member
Licensed User
Longtime User
I have a Adafruit Feather M0 with a simple chat application, send and receive text with UART.

with test app of Adafruit work fine.

I'm trying to connect to device with b4a and this example, but not work.

find the devide, but not connect.

Code: Copy
java.io.IOException: read failed, socket might closed or timeout, read ret: -1

it's the correct way/example?

thanks
 

Attachments

Last edited:
Upvote 0
i see the same address with app that work fine and with B4X app
Immage.jpg
 
Last edited:
Upvote 0
Ok, with this example i can connect to adafruit and read data.

but how can i read the uart data?

i have a Adafruit that send "123" each a seconds

https://learn.adafruit.com/introducing-adafruit-ble-bluetooth-low-energy-friend/uart-service

Code: Copy
DataAvailable
Service=6e400001-b5a3-f393-e0a9-e50e24dcca9e
Characteristics=(MyMap) {6e400003-b5a3-f393-e0a9-e50e24dcca9e=[B@1f63311, 6e400002-b5a3-f393-e0a9-e50e24dcca9e=[B@9891c76}
Service UART
char: 6e400003-b5a3-f393-e0a9-e50e24dcca9e, value = 
char: 6e400003-b5a3-f393-e0a9-e50e24dcca9e, value = [B@1f63311
char: 6e400002-b5a3-f393-e0a9-e50e24dcca9e, value = 
char: 6e400002-b5a3-f393-e0a9-e50e24dcca9e, value = [B@9891c76
 
Upvote 0
Back
Top