Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 01:33 27 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : MQTT over Hotspot

Author Message
Dinosaur

Guru

Joined: 12/08/2011
Location: Australia
Posts: 311
Posted: 07:48pm 17 Dec 2023
Copy link to clipboard 
Print this post


Regards
Hervey Bay Qld.
 
Dinosaur

Guru

Joined: 12/08/2011
Location: Australia
Posts: 311
Posted: 07:49pm 17 Dec 2023
Copy link to clipboard 
Print this post

Hi All

Can someone tell me what data or settings survive a CPU RESTART but won't survive
a power down. Considering that my first statement in the program is CLEAR.
Regards
Hervey Bay Qld.
 
Dinosaur

Guru

Joined: 12/08/2011
Location: Australia
Posts: 311
Posted: 08:35pm 17 Dec 2023
Copy link to clipboard 
Print this post

Hi All

FINALLY found MQTT re-connect problem.
In shorthand:...

If you Power up with Wifi ON, all is good.
After losing Wifi, program recognises it and stops trying to send.
Once in a while check if Wifi is back up, that's when the problem arises.

Assume the Wifi is back up
WEB SCAN
Look for SSID and IP
IF SSID ok, but IP is 0.0.0.0, do CPU RESTART
IF both OK and I do a MQTT CONNECT, I get "Already connected"
Ignoring this and tring to send will get you "TCP Disconnected" and the send fails.
Do a WEB MQTT CLOSE
Re-run the above sequence and it will succeed.

You can't do a WEB CLOSE before the Connect as it will fail at Power up.
Have done hundreds of tests and this is the best I can up with.
So somewhere along the line MQTT thinks it is still connected, but TCP has dropped out.
Regards
Hervey Bay Qld.
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 9118
Posted: 10:48pm 17 Dec 2023
Copy link to clipboard 
Print this post

Many moons ago I clearly stated that there were numerous (too many to count/analyse) conditions related to Web interactions that the WebMite (running on a toy processor with a toy wifi chip) would never be able to deal with - you have just found yet another. This will never be catered for along with many other failure conditions
 
Dinosaur

Guru

Joined: 12/08/2011
Location: Australia
Posts: 311
Posted: 10:57pm 17 Dec 2023
Copy link to clipboard 
Print this post

Hi All

The plus side is, I found a way around it.
The down side is, you didn't need to know about it.

I am pleased though that this "toy" with MMBasic is a great companion to the Zero.
My compliments and thanks for all your efforts.
Regards
Hervey Bay Qld.
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024