Hello,
Is there any sample apps (or codes) that behave as central mode, connect to peripheral device(s), write without response and receive message through notification?
I don't want to spent time developing code but I could only found BLE Central Security Demo Project below. These are almost peripheral.
//www.xmece.com/products/connectivity/bluetooth-low...
Thank you in advance.
Keywords:
Device:
Hi takeuchi0304,
TheSW Example: BLE Central Security Demo Projectconfigures the DA14585 both as a peripheral and as a central device. Please check the role item of user_gapm_conf structure which is located into the user_config.h header file. Its values is GAP_ROLE_ALL which means that the device can act ether as a peripheral or as a central (not at the same time). For your case, I would recommend you to have a look at theSW Example: Active Scannersoftware example which is more simple. This example is by default configured as GAP_ROLE_OBSERVER, so you will have to change the role item in user_gapm_conf to GAP_ROLE_CENTRAL. The most critical functions for central configuration are the user_scan_start() and user_on_scan_complete().
Thanks, PM_Dialog
Dear Dialog Colleagues,
I just met the same issue, and I also checked ble central security demo project, but I still have no idea how to get the service and charactertics of peripherial connected, what's my aim is to write data without response to the peripherial, do you have some demo on such point?
Thanks!
Wilson
Hi Wilson,
Let me check it and I will get back to you as soon as possible.
Thanks, PM_Dialog