13.02.2023, 15:15
Code:
value = event.getvalue()
level = value and 255 or 0
payload = require('json').encode({
level = level,
duration = 1,
targetid = 177,
targettype = 1,
})
mqtt = require("mosquitto")
Mqtt broker app communication with local client event based script
|
« Next Oldest | Next Newest »
|
Messages In This Thread |
Mqtt broker app communication with local client event based script - by Rajesh - 13.02.2023, 12:25
RE: Mqtt broker app communication with local client event based script - by admin - 13.02.2023, 12:31
RE: Mqtt broker app communication with local client event based script - by Rajesh - 13.02.2023, 13:47
RE: Mqtt broker app communication with local client event based script - by admin - 13.02.2023, 15:15
RE: Mqtt broker app communication with local client event based script - by Rajesh - 14.02.2023, 09:26
RE: Mqtt broker app communication with local client event based script - by admin - 14.02.2023, 09:29
|