skysilver-lab / php-miio

Реализация взаимодействия с устройствами из экосистемы xiaomi по протоколу miIO
MIT License
119 stars 21 forks source link

sending commands only successful in combination with mirobo #2

Closed bravehurts2 closed 6 years ago

bravehurts2 commented 6 years ago

for some reason the command php miio-cli.php --ip xx.yy.xx.xx --debug --sendcmd '{"id":1,"method":"find_me","params":[]}' --token aabbccdd... is only successful if I send a command with mirobo first: mirobo --token aabbccdd... --ip xx.yy.xx.xx status

otherwise i run into this line without data https://github.com/skysilver-lab/php-miio/blob/c8d666eefbf1ec66189029704d8f09178b7c3c0c/miio.class.php#L333

do you have an idea whats going wrong?

thanks for sharing your work. I'm just searching how to encrypt the data packages php based correctly.

bravehurts2 commented 6 years ago

with mirobot-sample.php it works. Don't care. I will find the problem.