Open DarkFox opened 5 years ago
Yes in theory that would be nice, though the MQTT client library used by esphomelib only supports communication over a direct TCP socket connection. Supporting websockets probably means re-writing large parts of that library which I do not intend to do in the near future.
Yeah, I see it's quite tightly coupled. I might give it a go some time though. :)
I see it is possible to use PubSubClient on ESP8266 to connect with AWS IoT: https://github.com/copercini/esp8266-aws_iot/blob/master/examples/MQTT_x509_bin/MQTT_x509_bin.ino
Maybe it just needs to add config for certificates?
Amazon Web Services IoT offers MQTT over Websocket and there are existing implementations for Arduino/ESP8266.