janstol / yeedart

Simple Dart library that lets you control Yeelight devices over LAN.
MIT License
10 stars 4 forks source link

Fixing ssdp:discover quotes #2

Closed fmichenaud closed 4 years ago

fmichenaud commented 4 years ago

After having some issues with the discover method, I found a typo in the ssdp:discover header sent in MAN.

Changing from 'MAN: \'ssdp:discover\'\r\n' to 'MAN: "ssdp:discover"\r\n' fixes the issue.

See https://www.yeelight.com/download/Yeelight_Inter-Operation_Spec.pdf

janstol commented 4 years ago

Aha, I accidentally replaced double quotes with single quotes in this part when I started using single quotes for all strings... Thanks!