Arduino-HardwareBLESerial icon indicating copy to clipboard operation
Arduino-HardwareBLESerial copied to clipboard

Properties of RX and TX characteristics are not set according to Nordic’s UART Service specifications

Open damir-krkljes opened this issue 2 years ago • 0 comments

After experiencing problems connecting Arduino MKR WiFi 1010 to the Serial Bluetooth Terminal application on Android using the SerialPassthrough example, I did some research. It turns out that the properties of characteristics are not set according to specs.

After changes in HardwareBLESerial.h the problem was solved. The changes are:

Instead: BLECharacteristic receiveCharacteristic = BLECharacteristic("6E400002-B5A3-F393-E0A9-E50E24DCCA9E", BLEWriteWithoutResponse, BLE_ATTRIBUTE_MAX_VALUE_LENGTH);

Should be: BLECharacteristic receiveCharacteristic = BLECharacteristic("6E400002-B5A3-F393-E0A9-E50E24DCCA9E", BLEWrite, BLE_ATTRIBUTE_MAX_VALUE_LENGTH);

Instead: BLECharacteristic transmitCharacteristic = BLECharacteristic("6E400003-B5A3-F393-E0A9-E50E24DCCA9E", BLENotify, BLE_ATTRIBUTE_MAX_VALUE_LENGTH);

Should be: BLECharacteristic transmitCharacteristic = BLECharacteristic("6E400003-B5A3-F393-E0A9-E50E24DCCA9E", BLERead | BLENotify, BLE_ATTRIBUTE_MAX_VALUE_LENGTH);

Anyway, thanks for the library.

damir-krkljes avatar Aug 05 '22 10:08 damir-krkljes