Good day. I am trying to send a JSON string through UDP.
For this, I made an item:
String udpBroadcast_25000 “Broadcast UDP JSON to port 25000 [% s]” (gNetwork) {udp = “> [192.168.1.255:25000:'REGEX((.*)) ']”}
And the rule:
rule “Kitchen light manual control”
when
Item kitchenLight_brightness changed
then
var String json = '{
“deviceID”: “CC: 50: E3: 56: 2B: 38”,
“parameter”: “brightness”,
“value”: ‘+ kitchenLight_brightness.state.toString () +’
} ’
udpBroadcast_25000.sendCommand (json);
end
But when I try to send in the log, I get the message:
[WARN] [g.tcp.AbstractDatagramChannelBinding] - The channel for /192.168.1.255:25000 has no connection pending (null)
Tell me, what is wrong here?