def send(self, ser: BluetoothSerial) -> None: dlen = len(self._data) ser.write_command(SET_EXG_REGS_COMMAND, 'BBB', self._chip, self._offset, dlen) ser.write(self._data)
def send(self, ser: BluetoothSerial) -> None: ser.write_command(self._req_code)
def send(self, ser: BluetoothSerial) -> None: ser.write_command(INQUIRY_COMMAND)
def send(self, ser: BluetoothSerial) -> None: ser.write_command(GET_EXG_REGS_COMMAND, 'BBB', self._chip, self._offset, self._rlen)
def send(self, ser: BluetoothSerial) -> None: ser.write_command(GET_STATUS_COMMAND)
def send(self, ser: BluetoothSerial) -> None: ser.write_command(GET_FW_VERSION_COMMAND)
def send(self, ser: BluetoothSerial) -> None: t_ticks = sec2ticks(self._time) ser.write_command(SET_RWC_COMMAND, '<Q', t_ticks)
def send(self, ser: BluetoothSerial) -> None: time_str = '{:d}'.format(int(self._time)) time_bin = time_str.encode('ascii') ser.write_command(SET_CONFIGTIME_COMMAND, "varlen", time_bin)
def send(self, ser: BluetoothSerial) -> None: ser.write_command(GET_CONFIGTIME_COMMAND)
def send(self, ser: BluetoothSerial) -> None: ser.write_command(GET_SAMPLING_RATE_COMMAND)
def send(self, ser: BluetoothSerial) -> None: str_bin = self._str_data.encode(self._encoding) ser.write_command(self._req_code, 'varlen', str_bin)