In simple terms you form a UDP segment with a LightwaveRF command in it, send it to the WiFi Link (which listens on port 9760) and, hey presto, it executes the command.
Example: The command “000,!R1D1F1|” means room 1 ("R1"), device 1 ("D1"), switch on ("F1"). Conversely “000,!R1D1F0|” would mean switch off. The "000" is a command reference, (so you increment it for each command in turn).
I thought I'd have a play myself using the only programming language I've any recent experience in, Visual Basic. Imagine my delight when I found out that Microsoft now provide free "Express" versions of Visual Basic, C# and C++.
- Bind a UDP socket to local port 9761*.
- Form a UDP packet with the LightwaveRF command in it.
- Send the command to port 9760 on the IP address that you WiFi Link is on. (Both PC and LightwaveRF were on my LAN so I just used the private IP address that had been allocated to the LightwaveRF).
- Wait for the response which is in the form of “000,OK”