We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7d7d49 commit 75e0b45Copy full SHA for 75e0b45
samples/demos/end_to_end_agriculture/main.py
@@ -199,8 +199,10 @@ def save_properties(properties):
199
if prop in text_properties:
200
xbee.atcmd(xbee_properties[prop], properties[prop])
201
else:
202
- xbee.atcmd(xbee_properties[prop],
203
- binascii.unhexlify(properties[prop]))
+ value = properties[prop]
+ if len(value) % 2 != 0:
204
+ value = "0" + value
205
+ xbee.atcmd(xbee_properties[prop], binascii.unhexlify(value))
206
207
# Configure the network encryption based on the given password.
208
if properties.get(PROP_PASS) is None:
0 commit comments