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

Is there any example to add more than one custom service ?

Hi, I tried Adding another service to the LBS Program, but the chip is getting reset , i have another 16 bit uuid service with different base uuid, Its getting stuck at SOFTDEVICE_HANDLER_INIT(),

  1. If i add both service uuid to adv_uuid[] then the device is getting reset several times.

if i remove the service then its working fine. 2. is there any example or tutorial for adding more than one custom services.

Thanks for any help.

Parents
  • Are you in the app_error_handler()? (and why do I have to write this 20x a week). Chances are some sd_* call has returned an error and you've gone to the error handler and the default handler resets the device.

    Put a breakpoint in the error handler, leave it there, you always want to know when you are debugging if you ended up in the handler.

    Either you've failed when adding another uuid (because you only have one available, see the comment above) or you've failed in the advertising init because you can't fit two full-sized UUIDs into the advertising packet, so it overflows, so it errors. You have to use the scan response.

    Single step until you get to the point of the error and look at the error return code.

Reply
  • Are you in the app_error_handler()? (and why do I have to write this 20x a week). Chances are some sd_* call has returned an error and you've gone to the error handler and the default handler resets the device.

    Put a breakpoint in the error handler, leave it there, you always want to know when you are debugging if you ended up in the handler.

    Either you've failed when adding another uuid (because you only have one available, see the comment above) or you've failed in the advertising init because you can't fit two full-sized UUIDs into the advertising packet, so it overflows, so it errors. You have to use the scan response.

    Single step until you get to the point of the error and look at the error return code.

Children
No Data
Related