added an mqtt config file to change password and client name
This commit is contained in:
parent
0c58cfe717
commit
65134cf73b
3 changed files with 9 additions and 2 deletions
|
@ -1,8 +1,12 @@
|
|||
dofile("screen.lua")
|
||||
attachscreen(18, 19, 0x3C)
|
||||
|
||||
client = mqtt.client("Player", "mqtt.leizour.fr", 8883, true)
|
||||
client:connect("student", "O99Rq8$F12NXzhL5caya")
|
||||
dofile("mqtt_config.lua")
|
||||
|
||||
client = mqtt.client(client_name, "mqtt.leizour.fr", 8883, true)
|
||||
client:connect("student", password)
|
||||
client:publish("pendu/gamestate", "query", mqtt.QOS0)
|
||||
|
||||
-- CLK (clock) : D15
|
||||
-- DT (data) : D2
|
||||
-- SW (Bouton): D4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue