Standalone Cordova BLE scanner
Posted: 14:49, 09 Nov 2015
I was working with the BLE scanner sample in the EVO Workbench samples. I modified it a bit to do what I wanted, which was reading the advertisement data from a RAD Dot beacon transmitting in AltBeacon mode on iOS. I wanted to make a standalone version of this not using the workbench in Cordova so as not to have any external dependencies. It seemed to be working pretty well, but I noticed that my code to read the Alt Beacon advertisement data wasn't running.
After looking more closely, I noticed that the device data had the "scanRecord" attribute, which would normally only show up on Android. After debugging a little, there was only basic information coming back from the device data, including Name, Address, rssi, etc. Weird thing is, this attribute normally only shows up on Android, not on iOS, which is the platform I was running on when I saw the issue.
So, I'm thinking that I'm missing a plugin or something. The only BLE plugin I installed was "com.evothings.ble" which is listed on the API page. To try to debug a bit, I un-installed the com.evothings.ble plugin and installed the cordova-ble plugin from git. When I tried to generate the Xcode project from the command line, I got some compile errors. What are the plugins required for BLE to work in a standalone Cordova App?
After looking more closely, I noticed that the device data had the "scanRecord" attribute, which would normally only show up on Android. After debugging a little, there was only basic information coming back from the device data, including Name, Address, rssi, etc. Weird thing is, this attribute normally only shows up on Android, not on iOS, which is the platform I was running on when I saw the issue.
So, I'm thinking that I'm missing a plugin or something. The only BLE plugin I installed was "com.evothings.ble" which is listed on the API page. To try to debug a bit, I un-installed the com.evothings.ble plugin and installed the cordova-ble plugin from git. When I tried to generate the Xcode project from the command line, I got some compile errors. What are the plugins required for BLE to work in a standalone Cordova App?