Uncaught Error: Module "MQTT" not found #5913
Replies: 1 comment
-
Posted at 2017-11-20 by Wilberforce You need to upload the code in the right side of the ide, it appears you are entering the code on the left. Posted at 2017-11-20 by Alexander Can't connect to https://api.cloudmqtt.com. What's wrong? Is this even possible? Posted at 2017-11-20 by Alexander This is my code:
Posted at 2017-11-20 by @gfwilliams Maybe try and connect with an MQTT client on a local computer first to check it works? It's also worth noting that Espruino on ESP8266 won't do TLS (needed for secure MQTT), which I guess could be causing you problems? Posted at 2017-11-20 by Alexander Understood! It works!!! Just the ports were closed Posted at 2017-11-20 by Alexander Here is the working code! Whom it is necessary.
Posted at 2017-11-20 by Alexander Are only outgoing messages. Why? The function mqtt.on('publish', mqttMessage); - not working Posted at 2017-11-20 by @gfwilliams Have you subscribed to what you are interested in? Usually topics start with a Posted at 2017-11-20 by @allObjects PS... on a side note: @alexander, when you include code in posts, place it between two line that have only three (3) 'back-ticks' at the beginning and make sure there is an empty line before and after the lines with the back-ticks. This way all your code is furnished with line numbers, shows in one block, and is much more legible. Posted at 2017-11-20 by Alexander Is that better? :) Posted at 2017-11-21 by @allObjects Perfect! ;-) Btw, now I noticed, that I'm not sure if it is bad, but it kind of tickles my guts the wrong way... @gfwilliams will for sure know. I keep the Posted at 2017-11-21 by @gfwilliams Yes, as @allObjects says I'd avoid using If you want to save immediately when you send, you're probably better off using Posted at 2017-11-22 by Alexander Thank you! Very useful tips. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-11-20 by Alexander
Did not see the MQTT module. More can that where to disable that would work MQTT.
Beta Was this translation helpful? Give feedback.
All reactions