What happened today: I spent 4+ hours working on integrating the Bluetooth LE library into the Enchanted BLE app. Despite promising results yesterday when I was able to connect to and read the RSSI signal strength from the Light Blue Bean. I see this as a key feature for connected interactions because it functions as a corse measure of distance. To be able to subscribe to bluetooth devices based on distance and then update them depending upon context is an important feature. Specifically, with regards to a connected umbrella I need to be able to understand where a user is and essentially geofence them in order to make the api calls in a timely manor. But reason aside lets talk about the code and error that I’m getting. I’m switching from Don Coleman’s BLE Central library to the simply named Cordova-BLE-plugin. The main reason for the this was the inclusion of RSSI updating and the fact that the library has been recently updated (which really mean someone is still caring for it). BLE Central did not have RSSI updating. Currently, when I run the the app I get the following error. This is peculiar because I know the service id is correct and thus its unclear what the error actually is. Tomorrow, I will try to force the library into finding the services and characteristics of the Light Blue Bean. My hope is that this will either meet the unspoken requirements of the library or I’ll be forced to find a new option, go back to BLE Central or forward to Evo things which claims to be able to connect to the bean.

Originally published on Tumblr