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

A question about Role example for NUS

Hi all , I have a trouble . I am using ble_app_hrs_rscs_relay example . I modify it for NUS service . I have 3 board . peripheral <-> role <-> central via NUS . It work fine . But when I turn off peripheral board and reconnect with role . Only central can send data to peripheral , and pheripheral can't send to central (seem peripheral still send to role , but role can't send to central) .It onle work fine if I reset central or role board . I want to ask this is purpose of example or my code has error . Thank !!! And Can you give me the solution . Thank!

Parents
  • Do you have a sniffer so you can see if there is anything transferred on air from role to central? If it is not you will get an error on role when trying to send a notification to the central. Note that some error codes will be ignored by the application (at least in RSCS relay) so you must make sure you either print these or add a breakpoint if you hit one of these errors.

Reply
  • Do you have a sniffer so you can see if there is anything transferred on air from role to central? If it is not you will get an error on role when trying to send a notification to the central. Note that some error codes will be ignored by the application (at least in RSCS relay) so you must make sure you either print these or add a breakpoint if you hit one of these errors.

Children
No Data
Related