LilyGO-T-SIM7000G icon indicating copy to clipboard operation
LilyGO-T-SIM7000G copied to clipboard

Connect MQTT securely Port 8883

Open droidblastnz opened this issue 1 year ago • 1 comments

I see SIM7500_SIM7600_SIM7800 Series_MQTT(S)_Application Note_V3.00.pdf mentions the use of port 8883 over 1883.

Tiny_GSM doesnt seem to support this function - boolean mqttConnect() and there is not examples of how to achieve this.

Anyone had success and/or can share some code? Using a SIM7600G

droidblastnz avatar Mar 28 '23 05:03 droidblastnz

Tiny_GSM has a TLS-Mode but you have to set the right "define".

Use: #define TINY_GSM_MODEM_SIM7000SSL

Instead of #define TINY_GSM_MODEM_SIM7000

And than TinyGsmClientSecure client(modem);

Instead of TinyGsmClient client(modem);

nivoc avatar Jun 25 '23 19:06 nivoc