Hi all,
I am fairly new to using the CC2540 and would like some suggestions on how I can get started with this simple project I am working on.
Basically, I would like to broadcast the status of an I/O pin on the CC2540 every 1 second to a mobile phone and I need this to be as energy efficient as possible. So I have a few questions:
- Can I use SImpleBLEBroadcaster? Since I don't need the phone send any data back.
- Do I need scan response data or I can just put the status of the I/O pin inside advertData?
- I read that the less number of bytes you send, the less power you consume. So I could be just sending 1 byte of advertData every one second?
- I was thinking the I/O pin should be interrupt triggered and will set a variable. This variable will be broadcast and cleared after that.
Thanks in advance for helping!
Cheers,
Kian