SDRPlay Independent Community Forum › Forums › SDR Software (RSP Compatible) › Example code from the API document not working on Linux
Tagged: API example callbacks
I try to use the example code from the SDRplay_API_Specification_v3.06 document on Linux.
After implementing _kbhit and _getch functionality using select and read the code seems to run. The output is as follows.
Requested TunerA Mode=Single_Tuner
Dev0: SerNo=1710046220 hwVer=2 tuner=0x01
chosenDevice = 0
sdrplay_api_EventCb: sdrplay_api_GainChange, tuner=sdrplay_api_Tuner_A gRdB=40 lnaGRdB=34 systemGain=49.19
But nothing else. So the callback is only called ONCE.
I would assume a continuous stream of callbacks.
Why are they not coming?
Thanks in advance,
I’m having exactly the same experience. Is there a way to extract more debugging info from the sdrplay_apiService process?
Is the code for sdrplay_apiService available?