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

Unable to add multiple 128bit UUID services

I was able to add the Device Information service as well as a proprietary service using a 128 bit UUID. I modeled after the ble_peripheral uart example. However when I try to add this service on top of the proprietary UART service in the ble_peripheral example, my board stops advertising. I tried several variants but still no luck. Is there an example that adds multiple proprietary services?

I am using 2.0.0-7.alpha (2015-12-18). I tried to update but was unsuccessful. I got the following message:

I also tried to add the UUID for the UART using the example code. Same problem!

I am attaching a file with the relevant code.

MultipleServices.docx

Parents
  • Usual advice - put a breakpoint in the app error handler because that's most likely where you went after a function returned an error. And most likely you went there because the advertising encoder returned an error code because there's no room in the advertising packet for a long custom UUID along with all the other stuff which is already in there. Put it in the scan response.

  • Well I'll give you the same advice. Put a breakpoint in the error handler. Boards don't just disappear into the sunset, or stop working and they don't get all upset and just stop advertising because they don't feel like it. The processor is somewhere doing something, hit break and find out where and what.

Reply
  • Well I'll give you the same advice. Put a breakpoint in the error handler. Boards don't just disappear into the sunset, or stop working and they don't get all upset and just stop advertising because they don't feel like it. The processor is somewhere doing something, hit break and find out where and what.

Children
No Data
Related