简体   繁体   English

CURL本地界面(智能灯泡)

[英]CURL local interface (smart bulb)

How do i curl a local interface (smart bulb) with binary data from my lan? 如何使用局域网中的二进制数据来卷曲本地接口(智能灯泡)?

From mac terminal 从Mac终端

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

Doesn't work. 不起作用

The binary packet is correct according to the interface binary api. 二进制数据包根据接口二进制api是正确的。 The address and port are of the smart bulb. 地址和端口属于智能灯泡。

Are there any special headers or properties to set when curling a wifi interface? 卷曲wifi接口时是否需要设置任何特殊的标题或属性?

Thanks Asaf 谢谢阿萨夫

**Edited **编辑

Switched to netcat. 切换到netcat。 This cmd worked for me 这个cmd为我工作

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 for the comment. 感谢您的评论。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM