Go Down

Topic: Multiple SSL Connections (Read 155 times) previous topic - next topic

kPaps

Aug 01, 2020, 05:42 pm Last Edit: Aug 01, 2020, 05:43 pm by kPaps
Hello all,

I am using an Uno WiFi Rev. 2 board and the WiFiNINA library. I want to create 2 SSL connections, one with a long duration, to use the MQTT protocol to send telemetry to the cloud and another one with short duration to perform a simple GET request.

I create the first SSL connection for telemetry and shortly after I create the second one for the GET request. After I receive data from the GET request and close this connection, my first connection crashes a few seconds later.

I am using a single WiFiSSLClient object for both connections. I have tried using 2 objects for the 2 connections, but it makes no difference. Is there a way to use both SSL connections without one of them crashing?

Thanks in advance

Go Up