summaryrefslogtreecommitdiffstats
path: root/glucometerutils/support/lifescan_binary_protocol.py
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@flameeyes.eu>2018-01-07 00:53:28 +0100
committerDiego Elio Pettenò <flameeyes@flameeyes.eu>2018-01-07 00:53:28 +0100
commit34b8153d2612b6450650230b596ee51cac82c4de (patch)
treee0bbc99e451406f163e896363cec66dd7d6050f3 /glucometerutils/support/lifescan_binary_protocol.py
parentotverioiq: update version and serial number requests. (diff)
downloadglucometerutils-34b8153d2612b6450650230b596ee51cac82c4de.tar
glucometerutils-34b8153d2612b6450650230b596ee51cac82c4de.tar.gz
glucometerutils-34b8153d2612b6450650230b596ee51cac82c4de.tar.bz2
glucometerutils-34b8153d2612b6450650230b596ee51cac82c4de.tar.lz
glucometerutils-34b8153d2612b6450650230b596ee51cac82c4de.tar.xz
glucometerutils-34b8153d2612b6450650230b596ee51cac82c4de.tar.zst
glucometerutils-34b8153d2612b6450650230b596ee51cac82c4de.zip
Diffstat (limited to 'glucometerutils/support/lifescan_binary_protocol.py')
-rw-r--r--glucometerutils/support/lifescan_binary_protocol.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/glucometerutils/support/lifescan_binary_protocol.py b/glucometerutils/support/lifescan_binary_protocol.py
index 92a0002..caa9b63 100644
--- a/glucometerutils/support/lifescan_binary_protocol.py
+++ b/glucometerutils/support/lifescan_binary_protocol.py
@@ -54,6 +54,8 @@ def LifeScanPacket(command_prefix, include_link_control):
construct.Int16ul, lifescan.crc_ccitt, construct.this.data),
)
+COMMAND_SUCCESS = construct.Const(b'\x06')
+
VERIO_TIMESTAMP = construct_extras.Timestamp(
construct.Int32ul, epoch=946684800) # 2010-01-01 00:00