-
Notifications
You must be signed in to change notification settings - Fork 638
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for MQTT SSL #64
Comments
AsyncMqttClient should also support SSL if using the staging branch of Arduino Core ESP8266 with minor modifications on the code. Had no time to test it yet. |
Original comment by sebastianhanschke (Bitbucket: sebastianhanschke, GitHub: Unknown): Any news? I'd also be interested and happy to try out any beta. |
Async MQTT just added support for SSL. I'm worried about memory requierement, thou. Else will be added for 1.9. |
Version 1.9.0 adds support for TLS/SSL MQTT connections. To build a TLS compatible version of the firmware you need the staging ESP8266 Arduino Core branch and compile the firmware passing the ASYNC_TCP_SSL_ENABLED=1 build flag. if you are disabling web support (WEB_SUPPORT=0) you might want to hardcode some other settings (WIFI#_SSID, WIFI#_PASS, MQTT_SERVER, MQTT_SSL_ENABLED, MQTT_SSL_FINGERPRINT,...). Next will be to add support when using PubSubClient library too. |
Current status:
|
Support using PubSubClient (MQTT_USE_ASYNC=0) will be released with 1.9.3. As for AsyncMqttClient (MQTT_USE_ASYNC=1) , it will not be onthe prebuilt images, you will have to compile it yourself since you need to decide a few things. When using MQTT_USE_ASYNC=1 its recommended to disable web support (WEB_SUPPORT=0). You will be able to configure it via compile time settings, serial or telnet. When using MQTT_USE_ASYNC=0 all the modules that use ESPAsyncTCP should be disabled, that means: WEB_SUPPORT=0, ALEXA_SUPPORT=0, TELNET_SUPPORT=0 and INFLUXDB_SUPPORT=0. Thus, it's not recommended to use this configuration since it disables a lot of cool features in the firmware. |
Released with 1.9.3 |
Originally reported by: Minh Phuong Ly (Bitbucket: phuonglm, GitHub: phuonglm)
Want to connect my node to public MQTT server or cloud service but because SSL it not supported yet so username and password can be sniff easily.
There are some try and failed (homieiot/homie-esp8266#108) but I hope we can implement it right.
The text was updated successfully, but these errors were encountered: