Quantcast
Viewing all articles
Browse latest Browse all 262198

CC2540 Continuous write and read.

Hello all!

I wish to program the dongle to write to a specific handle on the keyfob and then do a read from the same handle. I want to do this contiuously.

I'm using simpleBLECentral.

Right now I've programmed it  to do a write and when I receive an attribute write response, I initiate a read. When I receive a attribute read response I initiate a write and so on.

The first write and read are successful but in the second write I get bleTimeout. 

I've searched the forums and someone suggested using the function HCI_EXT_ConnEventNoticeCmd. Which might solve my issue as I'm possibly overloading the LL buffer. 

However when I include HCI_EXT_ConnEventNoticeCmd in my code (after connection) the compiler issues a varning saying the function is declared implicitly. 

I tested to see if any varnings were issued in simpleBLEPeripheral and there were no varnings.

Is it wrong to use the function in the simpleBLEcentral code?

Any other suggestions?

Mario


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>