This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

S120 softdevice, ble_app_hrs_c how to exit from scan_start() to main

main.cI'm using S120 softdevice with nrf51822, I want to use S120 as central and peripheral devices. When I received my beacon data then switch to peripheral for advertise. When I got received beacon data from on_ble_evt then want to exit to main then run advertise. How to exit from scan_start() to main? I suceed to run central and peripheral device using S120 separately.

Parents
  • Well your comment about jumping from one function to main where normally this is non-blocking call (so no need to jump anywhere, the function should exit basically immediately from wherever you call it) and normally nothing should really be done in main after initialization (but rather in event and interrupt handlers) indicates possibly deeper architectural problems where maybe porting/starting from scratch with good S130 examples is the way forward... but indeed it's your call. In every case from your poor description there is hardly anything to suggest;)

Reply
  • Well your comment about jumping from one function to main where normally this is non-blocking call (so no need to jump anywhere, the function should exit basically immediately from wherever you call it) and normally nothing should really be done in main after initialization (but rather in event and interrupt handlers) indicates possibly deeper architectural problems where maybe porting/starting from scratch with good S130 examples is the way forward... but indeed it's your call. In every case from your poor description there is hardly anything to suggest;)

Children
No Data
Related