Hi,
I downloaded and successfully ran the SpokesNativeSample and can from xcode turn mute on and off, initiate calls etc. -- So I think I'm in good shape with the SDK.
I downloaded and ran the SensorNativeDemo and once confirming it built successfully changed the code as below. (I can't see a way to pretty-print src here, so I'll paste it at the end).
What i see now, (at least with my C435 headset, my W440 is at home) is that none of the callback functions are called. I was expecting that (at least) onHeadsetButtonPressed would be called when I push the vol+/vol-/hangup/mute buttons on the headset.
I do see "In Sink" in the output console, and I do see "Press enter to quit..." but i do not see "headset button pressed" etc.
I also do not see any of the errors
Any ideas?
thanks,
Richard
class DeviceListenerEventSink : publicIDeviceListenerCallback
{
public:
DeviceListenerEventSink() { wcout<< "in sink"<< endl;}
// IDeviceListenerCallback implementations
virtualvoid onHeadsetButtonPressed(DeviceListenerEventArgsconst&args) { wcout<< "headset button pressed"<< endl;}
virtualvoid onHeadsetStateChanged(DeviceListenerEventArgsconst&args) {wcout<< "headset state changed"<< endl; }
virtualvoid onBaseButtonPressed(DeviceListenerEventArgsconst&args) { wcout<< "base button pressed"<< endl;}
virtualvoid onBaseStateChanged(DeviceListenerEventArgsconst&args) { wcout<< "base state changed"<< endl;}
virtualvoid onATDStateChanged(DeviceListenerEventArgsconst&args) { wcout<< "ATDS state changed"<< endl; }
};
(cross posting from C++ WearingSensorNativeDemo - Plantronics SDK for Mac.zip which i think now was the wrong place to post the question)