- DIR = Dir.EXT
-
- @classmethod
- def response(
- cls,
- uploadintervalseconds=0x0300,
- binaryswitch=0b00110001,
- alarms=[0, 0, 0],
- dndtimeswitch=0,
- dndtimes=[0, 0, 0],
- gpstimeswitch=0,
- gpstimestart=0,
- gpstimestop=0,
- phonenumbers=["", "", ""],
- ):
+ RESPOND = Respond.EXT
+ OUT_KWARGS = ( # TODO handle properly
+ ("uploadintervalseconds", int, 0x0300),
+ ("binaryswitch", int, 0b00110001),
+ ("alarms", int, [0, 0, 0]),
+ ("dndtimeswitch", int, 0),
+ ("dndtimes", int, [0, 0, 0]),
+ ("gpstimeswitch", int, 0),
+ ("gpstimestart", int, 0),
+ ("gpstimestop", int, 0),
+ ("phonenumbers", int, ["", "", ""]),
+ )
+
+ def out_encode(self):