You are not logged in. Please login or register.
Active topics Unanswered topics
Welcome to the wolfSSL Forums!
Please post questions or comments you have about wolfSSL products here. It is helpful to be as descriptive as possible when asking your questions.
References
Stable Releases - download stable product releases.
Development Branch - latest development branch on GitHub.
wolfSSL Manual - wolfSSL (formerly CyaSSL) product manual and API reference.
Search options
The Issue appears the The Reconnect sequence needs the Init Function to be called
MqttClientNet_Init()
MqttClient_Init()
MqttClient_NetConnect()
MqttClient_Connect()
Apparently MqttClient_NetDisconnect() does not clean up properly. I assume Later versions fix this.
I will check for memory leaks.
V1.0.0 and 1.1.0 only works sometime. It looks like there are some API changes between MQTT and SSL.
What I was look for is a new connection. Ie I pull the Network cable.
I would Expect:
MqttClient_Disconnect()
MqttClient_NetDisconnect();
followed by:
MqttClient_NetConnect()
MqttClient_Connect()
This Does Not Work and causes an exception
I would Assume this is fixed in later versions.
Reconnecting with the existing resources would be optimal
ie
rc = client->net->connect(client->net->context, AZURE_HOST, MQTT_TLS_PORT, DEFAULT_CON_TIMEOUT_MS);
rc = wolfSSL_connect(client->tls.ssl);
DO I need more than this to reconnect the Connection to the server?
then for
MQTT
Can I just call MqttClient_Connect() again?
Change from Harmony 1 to 3 is a major rewrite. I will Check with Microchip.
To me, for embedded use, the Stack is better. The Heap can get fragmented.
Right now the Connection to Azure is working very well. Subscribe and Publish.
I just need to handle disconnects.
MqttClient_NetDisconnect() and MqttClient_Disconnect() seem to cause exceptions an do no restore the connection.
They maybe better in later versions.
I need to handle certificate expiration, Sever timeouts, and Network disconnects.
I will Check with Microchip about updates.
If not I will need to make my own reconnect function.
Thank you for all you help
Thank you for your Response.
I will Need to look at the links.
1. I will Look (The sample is for MQTT V0.10)
2. Will 5.7.0 work with Harmony 1 or does it need Harmony 3? Or is that a question for Microchip.
3. I am making a single connection to an Azure MQTT Broker.
I did not choose small stack. I should look at that too.
The Question is how much I need add to the Heap / Stack to insure SSL is Good. I still have plenty of RAM
Can I have it do all the mallocs and hold them. I assume large stack will do less mallocs. Does either work faster?
4. I will Look.
(instructions here: https://github.com/wolfSSL/wolfssl-exam … aster/tls) this link is Bad
Right now my Subscription is working well.
This is a Commercial Product. (Or will Be)
Will the two links help a shut down and start up if the connection is lost.
My Application will run for months at a time unattended. I would like it to restore the connecyion on its own.
I am trying to Add WolfMQTT to Microchip Harmony 1.06 Project.
I am having some Issues so
1> I am Assuming the sample Works.
2>What would be the Newest version of Wolf SSL / Wolf MQTT that will work with that version of the Microchip Network Stack
Wolf SSL =3.9.0 and Wolf MQTT = V0.10 / Wolf MQTT
3> How Much Heap does it need I am sending to Azure.
4> If I close MQTT and Net The SSL fails when I call MQTT INIT. Is there a way to leave the SSL Initialized. I may send as little as once per day so I do not want to keep the connection Open.
Posts found: 5
Generated in 0.006 seconds (67% PHP - 33% DB) with 4 queries