def listSampleRates(self, chan): rates = [] for response in self.stub.listSampleRates( iotSDR_pb2.Rf_chan(chan=chan)): rates.append(response.rate) print("iotSDR Supported Rates:", rates) return rates
def listFrequencies(self, chan): freqList = [] for response in self.stub.listFrequencies( iotSDR_pb2.Rf_chan(chan=chan)): freqList.append(response) print("iotSDR Frequency list: ", freqList) return freqList
def getGainRange(self, chan): response = self.stub.getGainRange(iotSDR_pb2.Rf_chan(chan=0)) print("iotSDR Transmitter Gain Range:", response.min, response.max) return (response.min, response.max)
def getGain(self, chan): response = self.stub.getGain(iotSDR_pb2.Rf_chan(chan=0)) print("iotSDR Transmitter Gain get", response.status) return response.status
def getSampleRate(self, chan): response = self.stub.getSampleRate(iotSDR_pb2.Rf_chan(chan=chan)) print("iotSDR Sampling rate get response: ", response.status) return response.status
def getFrequency(self, chan): response = self.stub.getFrequency(iotSDR_pb2.Rf_chan(chan=chan)) print("iotSDR Tuned at Frequency: ", response.freq)