Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 11 months ago.
How to implement BLE device discovery?
Hi,
I have seen code on how to implement BLE service discovery... but I'm looking for device discovery (BLE scanning). How could that be done?
To clarify I have a X-NUCLEO-IDB04A1 BLE shield on top a Nucleo L152RE. I would like it to see nearby BLE devices and print it on UART. I know how to do the UART printing ;) I don't know how to detect presence of other BLE devices nearby... And I haven't found documentation for the BLE library either :(
Thanks!
Question relating to:
2 Answers
8 years, 11 months ago.
Hi Axelle,
The program Rohit provide is effectively for a nrf51 target. Fortunately, it is possible to change the target and use the proper library for your setup.
The BLE_observer example for your setup is available here: https://developer.mbed.org/users/vcoubard/code/BLE_Observer_Nucleo/
8 years, 11 months ago.
https://developer.mbed.org/teams/Bluetooth-Low-Energy/code/BLE_Observer/ There are other examples showing the use of scanning APIs