I am an absolute beginner when it comes to using Javascript to connect to a BLE device. I am trying to make an Android app with Cordova, written in HTML and Javascript, that will automatically search for a specific BLE device, connect to it, and display a specific characteristic. I have played around with the "BLE Discovery" example from the EvoThings Workbench and can see my BLE Device in my app, but can not connect to it. The name of the device is "Emulator" and the specific characteristic UUID is 10AA2957-3515-11E4-8C21-0800200C9A66 which has a Hex value that I'd like to convert to a decimal.
Unfortunately, I am totally lost and have no idea where to begin. Any help would be greatly appreciated!
Complete Beginner Help with BLE Connection
Re: Complete Beginner Help with BLE Connection
A characteristic value is delivered as an ArrayBuffer. To convert that to a String, you may use the function evothings.ble.fromUtf8(). Note that this function will throw an exception if the data is not valid UTF-8.
Return to “Questions and answers”
Who is online
Users browsing this forum: No registered users and 54 guests