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

Write long in android

Hi All,

I have got reliable writes working on nordic side (nrf51822 eval board). Tested them with master emulator dongle by using write long button on MCP on PC.

I am trying to write a long characteristic from android app. It seems MCP (android app does not support long write).

We are making our own android app for writing upto 100 bytes to a characteristics.

If anyone has any exposure on how to implement long write in android please share the method. Or share a doc/link which has implementation details for the same

Am open to reading.

Parents
  • It is not currently possible to write a characteristic with a payload larger than 20 bytes with Nordic's stack. One way to get around this is to break the 100 byte block of information into 5 20 byte packets that you send one after. You typically send a packet after the successful send of the previous packet. This ensures that you do not try to send too many messages at once which can result in messages being overwritten and never sent.

Reply
  • It is not currently possible to write a characteristic with a payload larger than 20 bytes with Nordic's stack. One way to get around this is to break the 100 byte block of information into 5 20 byte packets that you send one after. You typically send a packet after the successful send of the previous packet. This ensures that you do not try to send too many messages at once which can result in messages being overwritten and never sent.

Children
No Data
Related