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

I want to send a information through BLE. I can handle the uart example but want to use custom service

I've used PCA10040 sdk15.0 example ble_peripheral ble_app_uart

I can handle it through terminal.

If I insert strings through terminal, App can receive.

But, I want to send a message directly PCA10040 to App.

for example, temperature or LED state .. something like this.

Before the sdk 14.0 People use

//

memset(PrintBuffer,0x00,sizeof(PrintBuffer));

power_manage();

//

I think it is changed when it goes to 15.0 to

idle_state_handle();

I want to send a message through BLE directly nrf to App. Help me.

Parents
  • Assuming that you don't want to expand the UART example with a defined serial protocol e.g. string message "LED 1 ON", and the handling that goes with it then I would suggest that you look closely at the blinky example and adapt the button service to your needs. The button service supports notification events whilst the LED state can be polled by the app. (read) as well as written to.

Reply
  • Assuming that you don't want to expand the UART example with a defined serial protocol e.g. string message "LED 1 ON", and the handling that goes with it then I would suggest that you look closely at the blinky example and adapt the button service to your needs. The button service supports notification events whilst the LED state can be polled by the app. (read) as well as written to.

Children
No Data
Related