I am attempting to use the REST service with the JavaScript API to access and process data from the headset on a webpage. I am however running into a number of issues:
- The REST service only detects connections using the Plantronics USB adapter. Other Bluetooth adapters are not detected by Spokes, even though I can still use Skype, Lync, and listen to music
- The REST service does not provide state information about the headset. I have no way to detect if the headset is connected or not. If the Plantronics USB adapter is plugged in, I get state information about the USB adapter. All of the information exposed in the DeviceInfo object and calls are about the USB adapter. There are facilities in the other APIs (IHostCommand and IHostCommandExt) that contain this information. Why isn't this device information exposed in the service?
Is there a way to get the source code to the REST service so that I can extend it to include these missing API items? Without them, the REST services cannot access any of the sensors on the device unless they trigger an event. I want to be able to display a proximity gauge, battery indicator, and "on-head" indicator... but cannot because I have no way to identify the initial state of the device.
Thoughts?