Function to control Lightwave RF devices via IP

And my function to control LightwaveRF wiv IP

Change WIFILINK_IP to your WiFIlinks IP address

function sendLW(strMessage) local lightwaveip = WIFILINK_IP local socket = require "socket" local udp = socket.try(socket.udp()) broadcast_ip = lightwaveip assert(udp:setoption("broadcast", true)) socket.try(udp:sendto(strMessage, lightwaveip, 9760)) end

Commands to send:

Register
100,!F*p. Register Veradevice with the WIFI link(You must send this then press the button on the WiFIlink to confirm)

Lights/Switches
001,!R1D1F0 Room 1 Device 1 Off
001,!R1D1F1 Room 1 Device 1 On (at last level)
001,!R1D1FdP1 Room 1 Device 1 Dim Level 1
001,!R1D1FdP32 Room 1 Device 1 Dim Level 32 (Full brightness)

Heating
001,!R1DhFtP30 Room 1 Set target temp 30 degs
001,!R1DhF
tP15 Room 1 Set target temp 15 degs