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

Can I create a simple ble application without creating a service?

Hi, I have PCA100040 development board. I need to create two simple ble application. One for central and one for peripheral.

  1. How can I do this?
  2. Can anyone suggest simple example code?
  3. Is it really required to create a service for advertising?
  4. In ble_uart_app and ble_uart_app_c examples, what exactly NUS service does? Can I remove it?
Parents
    1. You start with the example code and adjust it to your needs
    2. All the example code in the SDK is about as simple as it gets, I'd say the heart rate service is about the simplest of them all. So understanding the peripheral and central heart rate code would be the best way.
    3. No if you just want to advertise and nothing else then you don't need a service. For that go look at the beacon code, because that's all a beacon does, it advertises, and has no service.
    4. If you don't need it of course you can remove it, NUS is the service which the NUS service code implements, it sounds like you don't need it.
  • Thanks for the help. I tried the beacon example. But when I am scanning from my phone, not able to see any bluetooth device. Does the beacon app really advertise? How do I verify it? Please help.

Reply Children
No Data
Related