Skip to content

Commit ed19874

Browse files
committed
Merge pull request IBM-Cloud#3 from jsloyer/master
added new argument to publishing an event
2 parents ae61849 + 90cbf49 commit ed19874

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)