Host Engineering Forum
General Category => Do-more CPUs and Do-more Designer Software => Topic started by: icauto on October 31, 2020, 10:34:55 PM
-
Hello,
I am setting up an MQTT setup. I seem to get a fail at the point of TLS handshake. I tried a different MQTT broker and I am getting the same thing.
Here is a screen shot of the DMLOGGER Dump.
Doug
-
What's your scan time? For Gmail, I found that the process requires about 1.85 to 1.90 seconds of CPU time, and with the login timing out on Google's end after about 9 seconds, that means you must dedicate at least 21% of CPU time to logging in or it will time out. Email has a 1666 us/scan timeslice, so I have to have a scan time below 6.2ms (when not logging in) to log in. I don't know if MQTT has a similar timeslice number, or it might even be the same one, but try again with a program that has nothing in it but the MQTT. Then increase the scan time gradually and see it that makes it fail at some point.
-
The connection is being dropped in less than a second. Don't know why that would be, but there is almost no chance that the handshake would be completed that quick.
-
Seeing as I am getting it on 2 brokers, I believe it is on my side. Do I have to open any ports on the router or anything adjusted on my side?
-
Seeing as I am getting it on 2 brokers, I believe it is on my side. Do I have to open any ports on the router or anything adjusted on my side?
You wouldn't get to the handshake if that were a problem.
Are the brokers public? We can try to test them from here.
-
Hello,
We tried:
io.adafruit.com
www.maqiatto.com
Thanks
-
I tried io.adafruit.com and it worked fine. It did kick me when I had the login wrong, but once I used the generated I/O key it connected. I then had to get the topic format correct, but once fixing that I was able to see my data on the dashboard.
The AdaFruit I/O system is pretty slick. I hadn't seen that before. Looks like in addition to MQTT you can use an HTTP REST API to access it.
-
I do have the generated I\O key from adafruit. I went to device manager. Where do I put it in?
-
I do have the generated I\O key from adafruit. I went to device manager. Where do I put it in?
The I/O key is used as the password in the MQTT device config.
-
The AdaFruit I/O system is pretty slick. I hadn't seen that before. Looks like in addition to MQTT you can use an HTTP REST API to access it.
I?m about to try out Thingsboard.io - there?s a whole world of iot dashboards I?m just finding. I?ll post back once I try it out.