Hello, Would you have application that can support two nRF52840 pairing and transfer arbitrary large data files?
Thanks, Gerry
Hello, Would you have application that can support two nRF52840 pairing and transfer arbitrary large data files?
Thanks, Gerry
Can you teach me to do this ?
The packet transmission is handled by the function called char_notification_send(..) on line 218 of amts.c
Right now it is only sending a static buffer called uint8_t data[256] over and over, but you can replace this variable with some data of your own.
The "file" size is set by the AMT_BYTE_TRANSFER_CNT define, which you can also change if you want to change the transfer size.
The transmission of dummy data is initiated by the nrf_ble_amts_notif_spam(&m_amts) function. You should probably add a similar function that allows you to pass some data to the amts.c module, rather than just sending dummy data, and have the char_notification_send(..) function break your data into pieces and send them one after the other.