Skip to content

Commit

Permalink
Update cloudmqtt-3dprinters.py
Browse files Browse the repository at this point in the history
fixed python print()
  • Loading branch information
manik23 authored Jun 1, 2021
1 parent d3910b1 commit 51a396e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/python_clients/cloudmqtt-3dprinters.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
device["deviceInfo"]["name"] = clientName
deviceJson = json.dumps(device)

print "Client Name is: " + clientName
print( "Client Name is: " + clientName)

#callback when we recieve a connack
def on_connect(client, userdata, flags, rc):
Expand Down Expand Up @@ -128,7 +128,7 @@ def on_message(client, userdata, msg):
client.publish("/outbox/"+clientName+"/barLightLevel", '{"value":30}')
client.publish("/outbox/"+clientName+"/customMessage", '{"value":"Happy Hour is NOW!"}')
client.publish("/outbox/"+clientName+"/discoLights", '{"red":0,"green":0,"blue":0}')
print "Reseting values...."
print("Reseting values....")



Expand Down

0 comments on commit 51a396e

Please sign in to comment.