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

How to send a packet of bytes through connection peripheral mode ?

Hi, 

I would like to send multiple peripherals with each packet of bytes(244) to a central. I am using the blinky example from \nRF5_SDK_15.3.0_59ac345\examples\ble_peripheral\ble_app_blinky where I can only send a byte each time. Does anyone encounter or solved this issue ?

Thank you,

SKY

Parents
  • Hi,

    The LED characteristic used in ble_app_blinky example is configured to have a fixed length of 1. If you need characteristics that are configured for max payload, I suggest taking a look at the ble_app_uart example instead.

  • Hi,

    I used ble_app_uart_c and ble_app_uart where I need to type some command so that my packet data will send to central. Is there any way that I can advertise my packet load without typing anything from the command prompt within some period of time.besides, I have to send 8 peripheral data to a central where I tried with 2 peripherals but I always need to reset to change to another peripheral.

    There is a original simple API "ble_advdata_set" which is easier to use. If I want to have the same function of this API what should I do?

     

Reply
  • Hi,

    I used ble_app_uart_c and ble_app_uart where I need to type some command so that my packet data will send to central. Is there any way that I can advertise my packet load without typing anything from the command prompt within some period of time.besides, I have to send 8 peripheral data to a central where I tried with 2 peripherals but I always need to reset to change to another peripheral.

    There is a original simple API "ble_advdata_set" which is easier to use. If I want to have the same function of this API what should I do?

     

Children
No Data
Related