jeremypoulter / ArduinoMongoose

A wrapper for Mongoose to help build into Arduino framework
25 stars 15 forks source link

Only change opts.ssl_ca_cert to "*" if secure connection is enabled #13

Closed Virtex6 closed 4 years ago

Virtex6 commented 4 years ago

Hi there,

because mg_connect_opt tries to establish a TLS encrypted session if opts.ssl_ca_cert != NULL it is not valid to set opts.ssl_ca_cert to "*" if there is an unencrypted MQTT session.