guild icon
Toit
#MQTT Libary Problems
Thread channel in help
Zeroject
Zeroject 02/27/2023 10:01 AM
Hey im pretty new to Toit and Jag, but i would love some help. Im trying to connect to a mqtt brokker but when im trying to use the libary mqtt and follow the guides i keep getting errors with anything that relates to the mqtt. Im programming on the web console from toit.
Zeroject
Zeroject 02/27/2023 10:04 AM
iam importing mqtt and net
floitsch
floitsch 02/27/2023 10:09 AM
Try to import tcp from the mqtt package as well:
import mqtt.tcp as mqtt.
(edited)
floitsch
floitsch 02/27/2023 10:10 AM
That said. You shouldn't get the mqtt.Client error.
floitsch
floitsch 02/27/2023 10:10 AM
Let me have a look at the package.
floitsch
floitsch 02/27/2023 10:11 AM
Just checked. The import of mqtt.tcp shouldn't be necessary either.(edited)
floitsch
floitsch 02/27/2023 10:12 AM
What is the error you are getting on mqtt.TcpTransport? (what does the IDE say)
floitsch
floitsch 02/27/2023 10:13 AM
Can you show me the content of your package.lock file?
8 messages in total