MQTT Libary Problems
# help
z
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.
iam importing mqtt and net
f
Try to import
tcp
from the mqtt package as well:
import mqtt.tcp as mqtt
.
That said. You shouldn't get the
mqtt.Client
error.
Let me have a look at the package.
Just checked. The import of
mqtt.tcp
shouldn't be necessary either.
What is the error you are getting on
mqtt.TcpTransport
? (what does the IDE say)
Can you show me the content of your
package.lock
file?
8 Views