I'v made a little bash script where I send codes to my milight lamps and they switch colour. When I use the netcat version it works:
Code: Select all
echo -n -e "\x42\00\x55" | nc -u -q 1 xxx.xxx.xxx.xxx 8899
echo -n -e "\x40\x20\x55" | nc -u -q 1 xxx.xxx.xxx.xxx 8899
echo -n -e "\x40\xC0\x55" | nc -u -q 1 xxx.xxx.xxx.xxx 8899
Code: Select all
echo -n -e "\x42\00\x55" > /dev/udp/xxx.xxx.xxx.xxx/8899
echo -n -e "\x40\x20\x55" > /dev/udp/xxx.xxx.xxx.xxx/8899
echo -n -e "\x40\xC0\x55" > /dev/udp/xxx.xxx.xxx.xxx/8899