Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Connecting nRF52840 to Android App using CircuitPython BLE
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Connecting nRF52840 to Android App using CircuitPython BLE

by Niob on Wed Jul 08, 2020 6:23 am

Hello,

i want to connect the nRF52840 to an already finished Android App (written in Kotlin) using the Adafruit CircuitPython BLE library.
I have multiple questions regarding this endeavour, as I am totally new to BLE.

The example Service is using one UUID per direction (in and out) whereas my app is using one UUID for both directions and is using callbacks like onCharacteristicReadRequest and onCharacteristicWriteRequest to send and receive data, how can I create a Service using the BLE library which can send and receive data but is only using one UUID?

In addition the sample code for UART uses uart.read() and uart.write() to read and write, but the characteristic does not even have a read function. Because of that, when writing my own Service and wanting to read is throws: AttributeError: 'BoundWriteStream' object has no attribute 'read'.

Also, my app uses an MTU of 512 how can I request that using this library?

Thank you for your help!

Niob
 
Posts: 3
Joined: Fri Mar 08, 2019 12:29 pm

Please be positive and constructive with your questions and comments.