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

How can I read the payload data sent from service?

I am using the nRF52840 Preview DK with BLE 5.0. In the BLE ATT_MTU Throughput Example,I use several api such as sd_ble_gatts_value_get and so on,but i still can not read the correct data. How can I read the payload data correctly with a correct api? I want to read 1 MB of data sent from the tester board and store it into the buffer.

Parents
  • Hi Zway,

    The way we send data in the example is the one connect to PC will be the peripheral and have a server. The other peer is central and has a client. The peripheral will send data to the central via notification from the server to the client.

    If you have a look at NRF_BLE_AMT_C_EVT_NOTIFICATION in amtc_evt_handler() you can find where the data is arrived and notified to the application.

Reply
  • Hi Zway,

    The way we send data in the example is the one connect to PC will be the peripheral and have a server. The other peer is central and has a client. The peripheral will send data to the central via notification from the server to the client.

    If you have a look at NRF_BLE_AMT_C_EVT_NOTIFICATION in amtc_evt_handler() you can find where the data is arrived and notified to the application.

Children
Related