From 75d014ccf7025259f848645ffafa7e7b1c6b6369 Mon Sep 17 00:00:00 2001 From: Stuart Feichtinger Date: Sun, 31 Jan 2016 21:20:26 -0600 Subject: [PATCH] Added unsigned short python symbol --- .../mqtt_arbitrary_data/python_subscriber/subscriber.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/mqtt_arbitrary_data/python_subscriber/subscriber.py b/examples/mqtt_arbitrary_data/python_subscriber/subscriber.py index 170de2d..9e6b8ea 100644 --- a/examples/mqtt_arbitrary_data/python_subscriber/subscriber.py +++ b/examples/mqtt_arbitrary_data/python_subscriber/subscriber.py @@ -74,10 +74,10 @@ def parseMsg(payload): Var NAME | C TYPE (python symbol) | size of member x bytes ------------------------------------------------------------------- - "charAry" | uchar (s) | 10s x 1 = 10 bytes - "val1" | int16 / short (h) | 1h x 2 = 2 bytes - "val2" | unsigned long (L) | 1L x 4 = 4 bytes - "val3" | uint16 / unsigned short | 1H x 2 = 2 bytes + "charAry" | uchar (s) | 10s x 1 = 10 bytes + "val1" | int16 / short (h) | 1h x 2 = 2 bytes + "val2" | unsigned long (L) | 1L x 4 = 4 bytes + "val3" | uint16/unsigned short(H)| 1H x 2 = 2 bytes ------------------------------------------------------------------ Total packet size = | 18 bytes |