This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to implement timeslot observer based on ble_app_hrs?

Greetings,

I have a peripheral (S110) , when it is connecting to a central, it also need to scan another broadcaster (beacon) to obtain its RSSI and send to the central. So I tried to use the Nordic GitHub project Timeslot Oberver example on ble_app_hrs. So I copied the code from \nRF51-multi-role-conn-observer-advertiser-master\observer to \ble_app_hrs , and merged the two main() functions. But it didn't work. And I found if i commented advertising_start(), it can print advertising_report. And if i uncommented advertising_start(), it printed nothing. What's the problem and how can I do? Many thanks!

Parents Reply
  • Hi, thanks. But I'm 100% sure that I'm scanning actively with github.com/.../observer example. I'm getting responses and even print them. So now, I'm trying the other way - I'm trying to add connectable mode to nrf_observer and some service. I think, I'm almost there.. I'm connected, I can read GATT Generic and Attribute Services. And active scanning is being done "in the background". I just thought maybe it would be easier to add active scanning to hrs example. I want to scan very rarely, lets say just every 10 seconds for 1 second. Do you think S130 would be better? I don't need full central functionality (like connection init)..

Children
No Data
Related