summaryrefslogtreecommitdiff
path: root/examples/IoT_TestDevice.py
diff options
context:
space:
mode:
authorRobin Gloster <robin@loc-com.de>2014-08-18 00:52:24 +0200
committerRobin Gloster <robin@loc-com.de>2014-08-18 00:55:10 +0200
commit4144d60017e200d97bcfe0286daee06d4641a9e0 (patch)
treefb9c0349f91d289b05107e7dad07c78f5be2c691 /examples/IoT_TestDevice.py
parenta5c03b763a6545a214f4f391f7c07582c22150b2 (diff)
downloadslixmpp-4144d60017e200d97bcfe0286daee06d4641a9e0.tar.gz
slixmpp-4144d60017e200d97bcfe0286daee06d4641a9e0.tar.bz2
slixmpp-4144d60017e200d97bcfe0286daee06d4641a9e0.tar.xz
slixmpp-4144d60017e200d97bcfe0286daee06d4641a9e0.zip
cleanup semicolons, whitespace and mutable default arguments
Diffstat (limited to 'examples/IoT_TestDevice.py')
-rwxr-xr-xexamples/IoT_TestDevice.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/IoT_TestDevice.py b/examples/IoT_TestDevice.py
index 8105aaff..cd80cee2 100755
--- a/examples/IoT_TestDevice.py
+++ b/examples/IoT_TestDevice.py
@@ -179,13 +179,13 @@ if __name__ == '__main__':
# node=opts.nodeid,
# jid=xmpp.boundjid.full)
- myDevice = TheDevice(opts.nodeid);
+ myDevice = TheDevice(opts.nodeid)
# myDevice._add_field(name="Relay", typename="numeric", unit="Bool");
- myDevice._add_field(name="Temperature", typename="numeric", unit="C");
+ myDevice._add_field(name="Temperature", typename="numeric", unit="C")
myDevice._set_momentary_timestamp("2013-03-07T16:24:30")
- myDevice._add_field_momentary_data("Temperature", "23.4", flags={"automaticReadout": "true"});
+ myDevice._add_field_momentary_data("Temperature", "23.4", flags={"automaticReadout": "true"})
- xmpp['xep_0323'].register_node(nodeId=opts.nodeid, device=myDevice, commTimeout=10);
+ xmpp['xep_0323'].register_node(nodeId=opts.nodeid, device=myDevice, commTimeout=10)
xmpp.beClientOrServer(server=True)
while not(xmpp.testForRelease()):
xmpp.connect()