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

flush out existing used pipe for reuse in nRF8001 in pic18f?

`Hi Guys, I have some sensor data of 20 bytes at each measurement at different period stored in EEPROM. Now i have to transmit all data over BLE continously.

example : say 20 bytes of data at 7 different time period = 140 bytes of data.

Now i'm using BlueSendData to transmit my data in while loop as i'm using pipe number 1 with buffersize of 20 bytes. what i'm seeing is that it is not updating my data measurement in android app. after some time i came to know that i have support of max. of 62 pipes with each pipe capability of handling 20 bytes of data.

what i'm looking is how can i flush out my pipe immediately after sending 20 bytes of data so that i can use same pipe for sending another 20 bytes of data.

regards, gbiradar `

Related