networking - CURL local interface (smart bulb) -


how curl local interface (smart bulb) binary data lan?

from mac terminal

curl --request post --data-binary "31000014aff56f57d073d521437000000000000000000249000000000000000066000000007d92e1ba852bac0d00000000" 10.0.0.29:56700 

doesn't work.

the binary packet correct according interface binary api. address , port of smart bulb.

are there special headers or properties set when curling wifi interface?

thanks asaf

**edited

switched netcat. cmd worked me

echo "\x2a\x00\x00\x34\xb4\x3c\xf0\x84\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x0b\x00\x00\x00\x00\x00\x00\x00\x00\x75\x00\x00\x00\x00\x00\xe8\x03\x00\x00" | socat - udp-datagram:255.255.255.255:56700,broadcast 

thanks comment.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -