Forum Index » Windows Development » Offhook and than Onhook immidiately   XML
 
Author Message
PaulTver


Joined: 27/09/2018 23:24:28
Messages: 5
Offline

Hi everyone,

I am new in Jabra development. So, my question may be stupid.
I am use Windows SDK from my c++ code.

This is order of API's calling:

Jabra_SetAppID
Jabra_ConfigureLogging
Jabra_RegisterLoggingCallback
Jabra_Initialize

Also, I added logging to

void ButtonInDataTranslatedFunc( unsigned short deviceID, Jabra_HidInput translatedInData, bool buttonInData )
{
Jabra::LogString( "Button event: " + ToString( translatedInData ) + " - " + ToString( buttonInData ) + "\n" );
...

Than I just pickup headset on my Jabra HANDSET 450.
After it I see in output:

Button event: OffHook - true
{"Action":"input","AppID":"Q/gYs3RCnsav7Eane7skmCgmzmzer0EDoHdHF/3/uRY=","Device Name":"Jabra HANDSET 450","ESN":"0320C64F00","EventName":"LED_OFF_HOOK","FW":"1.30.0","LocalTimeStamp":"09-10-2018 16:15:03","Pid":"101b","Seq.No":4,"Value":"1","Variant":"101b00-0a"}
Button event: OffHook - false
{"Action":"input","AppID":"Q/gYs3RCnsav7Eane7skmCgmzmzer0EDoHdHF/3/uRY=","Device Name":"Jabra HANDSET 450","ESN":"0320C64F00","EventName":"LED_OFF_HOOK","FW":"1.30.0","LocalTimeStamp":"09-10-2018 16:15:05","Pid":"101b","Seq.No":5,"Value":"0","Variant":"101b00-0a"}

What I did wrong? Or did not necessary step?
Note, Skype and C# example works just fine.

PS. Is there any C/C++ example of SDK usage? I found none.

This message was edited 1 time. Last update was at 09/10/2018 08:36:41

 
 
Go to: