diff --git a/broadlink/__init__.py b/broadlink/__init__.py index 896459f..73f64da 100644 --- a/broadlink/__init__.py +++ b/broadlink/__init__.py @@ -235,6 +235,13 @@ class device: return True + def get_fwversion(self): + packet = bytearray([0x68]) + response = self.send_packet(0x6a, packet) + check_error(response[0x22:0x24]) + payload = self.decrypt(response[0x38:]) + return payload[0x4] | payload[0x5] << 8 + def change_name(self, name): packet = bytearray(4) packet.extend(map(ord, name))