8 years, 2 months ago.

How i can read a characteristic from the GATT server?

when i try to read the value setted on the GATT Characteristic from the smartphone using the function

ble.readCharacteristicValue(handle,buffer,size)

is returning "ReadValue() Not Supported" on the serial. I'm Using UARTService on a Nucleo f411RE with BlueNRG Shield (X-NUCLEO-IDB04AI).

Question relating to:

Bluetooth LE library for Nucleo board

1 Answer

8 years, 2 months ago.

Please refer to X_NUCLEO_IDB0XA1 which is fully aligned with latest BLE API and mbed SDK. Be aware that library Nucleo_BLE_API is no longer supported.

Accepted Answer

Hi Andrea, thanks for the tip. I'm trying with the X_NUCLEO_IB0XA1 lib, but now i get "pinmap mis-match" on the Serial there is a macro for avoiding this?

posted by Gabriele Tramonte 24 Feb 2016

Hi Gabriele, this is due to a lower level pin misconfiguration. By the way, the issue can be easily overcome by selecting Nucleo-F401RE before building from your mbed workspace.

posted by Andrea Palmieri 24 Feb 2016

Thanks Andrea, now it works fine!

posted by Gabriele Tramonte 24 Feb 2016