This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
tutorials_devicehub [2016/12/16 09:13]
admin [Sending Commands to the Nodes]
tutorials_devicehub [2017/04/01 07:39]
admin [Data Transmission]
Line 36: Line 36:
 def analog_input(dev,​ sensor): def analog_input(dev,​ sensor):
     value = randint(0, 1023)     value = randint(0, 1023)
-    sensor.addValue(value)+    sensor.addValue(float(value.strip()))
     dev.send()     dev.send()
     print value     print value