Blog2014 ≫ Differing result from lightwaverf wifi link

I hadn't thought about this before, I had always sent my commands direct to the ip address of my lightwaverf wifi link, but it looks like broadcasting udp commands across the network gets one result, with lots of details, see below:

[lightwaverf](/wiki/#lightwaverf) firmware true
" (7.3999e-05) raw 666,!F*p"
"got 255.255.255.255 (0.114362192)"
"got listener (0.132034912)"
"sending... (0.135085864)"
"sent (0.144713712)"
"receiving... (0.149542635)"
"received (33.136967213)"
"closing... (33.137301208)"
"closed (33.137613203)"
[Info - LightWaveRF] raw: response is *!{"trans":2,"mac":"03:0F:DA","time":3792586786,"prod":"pwrMtr","serial":"9EB3FE","signal":79,"type":"energy","cUse":186,"maxUse":186,"todUse":0,"yesUse":0}
*!{"trans":2,"mac":"03:0F:DA","time":3792586786,"prod":"pwrMtr","serial":"9EB3FE","signal":79,"type":"energy","cUse":186,"maxUse":186,"todUse":0,"yesUse":0}

but then I tried to control my lights and got no response (I'm using my code on a fresh raspberry pi, old one got corrupted). So I put the ip address of the wifi link in the config and tried the same command again:

[lightwaverf](/wiki/#lightwaverf) firmware true
" (7.7999e-05) raw 666,!F*p"
"got 192.168.1.64 (0.057938165)"
"got listener (0.063360086)"
"sending... (0.06521206)"
"sent (0.068170017)"
"receiving... (0.069371)"
"received (0.491657912)"
"closing... (0.49318489)"
"closed (0.494318874)"
[Info - LightWaveRF] raw: response is 666,ERR,1,"Not yet registered. See [WifiLink](/wiki/#wifi)"
666,ERR,1,"Not yet registered. See [WifiLink](/wiki/#wifi)"

now no response because Im not registered... so send the same command again remembering to pair it this time and get the old familiar response

[lightwaverf](/wiki/#lightwaverf) firmware true
" (8.6999e-05) raw 666,!F*p"
"got 192.168.1.64 (0.102991406)"
"got listener (0.104202388)"
"sending... (0.10600936)"
"sent (0.108538321)"
"receiving... (0.109354308)"
"received (0.492976372)"
"closing... (0.49441235)"
"closed (0.497526301)"
[Info - LightWaveRF] raw: response is 666,?V="U2.91M"
666,?V="U2.91M"

those commands again in full to get it going (I need to simplify this more):

sudo apt-get install ruby1.9.1-dev
sudo gem install [lightwaverf](/wiki/#lightwaverf)
[lightwaverf](/wiki/#lightwaverf) update email@email.com 1234 # if you already have a [lightwaverfhost](/wiki/#lightwaverf) config saved
[lightwaverf](/wiki/#lightwaverf) configure
[lightwaverf](/wiki/#lightwaverf) firmware
[lightwaverf](/wiki/#lightwaverf) lounge light on

github.com/pauly/lightwaverf1

raspberry pi: Credit card sized super cheap computer, awesome.

⬅️ :: ➡️

Paul Clarke's blog - I live in A small town, Kent. Married + dad to two, I am a full-stack web engineer, and I do js / nodejs, some ruby, python, php ect ect. I like pubbing, parkrun, eating, home automation and other diy stuff, history, genealogy, Television, squirrels, pirates, lego, + TIME TRAVEL.