1
TinyDuino Processors & TinyShields / Re: How to expose sensor data by defining readable characteristics in BGLib?
« on: February 10, 2015, 07:44:11 PM »
You do not need to do anything Gatt Server (TinyDuino) side to read the characteristic, it's handled internally by BGLib. If you want to update the data to be read however, you're better off using notifications. The RX characteristic on the BLE shield has notifications enabled by default, so you're good to go in that regard.
For a simple sketch, refer to this: https://github.com/tunjid/BLE
For a more complex sketch showing how to read to a characteristic and different firmware that can be used with BLE, refer to this: https://github.com/WuMRC/drive
That repository also has the source for an Android app along with it's APK should you want to write one.
Good luck.
For a simple sketch, refer to this: https://github.com/tunjid/BLE
For a more complex sketch showing how to read to a characteristic and different firmware that can be used with BLE, refer to this: https://github.com/WuMRC/drive
That repository also has the source for an Android app along with it's APK should you want to write one.
Good luck.