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
  • I want to send a message directly PCA10040 to App.

    Not clear what you mean - the  Nordic UART example does exactly that!

    Look at the  Nordic UART example code. See how the received message from the UART (ie, from you terminal) gets sent to the NUS API. Do the same with your "custom" data.

    The Nordic UART Service - just like a real UART - neither knows nor cares where the data came from, or what it represents.

Reply
  • I want to send a message directly PCA10040 to App.

    Not clear what you mean - the  Nordic UART example does exactly that!

    Look at the  Nordic UART example code. See how the received message from the UART (ie, from you terminal) gets sent to the NUS API. Do the same with your "custom" data.

    The Nordic UART Service - just like a real UART - neither knows nor cares where the data came from, or what it represents.

Children
Related