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.

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

it's the correct way/example?

thanks
 

Attachments

  • btchar2.zip
    9.8 KB · Views: 202
Last edited:

fishwolf

Well-Known Member
Licensed User
Longtime User
Upvote 0

fishwolf

Well-Known Member
Licensed User
Longtime User
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

B4X:
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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…