is there any code for device which act as master and peripheral other than nRF51_SDK_8.1.0_b6ed55fnnn\examples\ble_central_and_peripheral\experimental \app_s130_demo\pca10028\s130\arm4
is there any code for device which act as master and peripheral other than nRF51_SDK_8.1.0_b6ed55fnnn\examples\ble_central_and_peripheral\experimental \app_s130_demo\pca10028\s130\arm4
@deepu: The central should run the app_s130_demo. For peripheral you can test the code using any peripheral running heart rate service. You can use the ble_app_hrs project for example. Note that you need to update the address of the peripheral you want to connect to in gs_hb_peripheral_address[] array in the app_s130_demo application.
rather than giving the address ,can we make it connect to any slave which is advertising(automatic connection)??
@deepu: Yes, you can do that. But you need to refer to the ble_central\ble_app_hrs_c example for S120, where we scan for and connect to any peripheral that advertise the hrs service's UUID.
The implementation should be the same.
ok,is that possible in the nRF51_SDK_8.1.0_b6ed55fnnn\examples\ble_central_and_peripheral, to make the device connect with any slave which is advertising(without giving address!!!)?? The thing is that i want to make the device act like master and slave.
@Deepu: Yes you can do that. Just follow what we did on the ble_app_hrs_c example on how to parse the advertising packet, look for the UUID you want, find the address of the advertiser and then connect to that address. The code that worked for the S120 should also work on the S130, the API are pretty much the same.