code: def set_data_rate(self, datarate):
          
          if datarate != self.current_datarate:
              _send_vendor_setup(self.handle, SET_DATA_RATE, datarate, 0, ())
              self.current_datarate = datarate
docs: Set the radio datarate to be used