Skip to content

Commit 90cbf49

Browse files
committed
added new argument to publishing an event
1 parent ae61849 commit 90cbf49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def myCommandCallback(cmd):
3232
GPIO.wait_for_edge(18, GPIO.FALLING)
3333
print "Button Pushed"
3434
myData = {'buttonPushed' : True}
35-
client.publishEvent("raspberrypi", options["deviceId"], "input", myData)
35+
client.publishEvent("raspberrypi", options["deviceId"], "input", "json", myData)
3636
time.sleep(0.2)
3737

3838
except ibmiotf.ConnectionException as e:

0 commit comments

Comments
 (0)