bash shell 에서 이렇게 하면 됨.

printf "{\"id\":1,\"method\":\"set_power\",\"params\":[\"on\"]}\\r\\n" >/dev/tcp/192.168.0.48/55443
printf "{\"id\":1,\"method\":\"set_power\",\"params\":[\"off\"]}\\r\\n" >/dev/tcp/192.168.0.48/55443

Posted by Real_G

댓글을 달아 주세요