def response(self, supnum=0):
# 1: The device automatically answers Pickup effect
# 2: Automatically Answering Two-way Calls
# 3: Ring manually answer the two-way call
def response(self, supnum=0):
# 1: The device automatically answers Pickup effect
# 2: Automatically Answering Two-way Calls
# 3: Ring manually answer the two-way call
def inline_response(cls, packet):
return cls.make_packet(packet[2:8])
def inline_response(cls, packet):
return cls.make_packet(packet[2:8])
def inline_response(cls, packet):
return cls.make_packet(packet[2:8])
def inline_response(cls, packet):
return cls.make_packet(packet[2:8])
"!BBHBBBBB", 7, cls.PROTO, *datetime.utcnow().timetuple()[:6]
)
"!BBHBBBBB", 7, cls.PROTO, *datetime.utcnow().timetuple()[:6]
)
def response(self, status=1): # Server sent, 0-off, 1-on
def response(self, status=1): # Server sent, 0-off, 1-on
def response(self, lat=None, lon=None):
if lat is None or lon is None:
def response(self, lat=None, lon=None):
if lat is None or lon is None:
- @classmethod
- def inline_response(cls, packet):
- return cls.make_packet(packet[2:4])
-
- def response(self):
- return self.make_packet(pack("!H", self.interval))
+ def response(self, interval=10):
+ return self.make_packet(pack("!H", interval))