Closed samutigro closed 4 months ago
You have to fetch the events from the returned _connection
or else sending won't work either. If you don't need the events (can't imagine that but oh well) use the other constructor, that does not return a connection, but expects an event callback closure, where you can supply an empty one.
how do I fetch a connection event? Or why would I handle it? @ivmarkov
Would you please join the Matrix room and ask there? Also, look at the Connection
API. It is a single method...
Would you please join the Matrix room and ask there? Also, look at the
Connection
API. It is a single method...
how do I access Matrix room?
I'm trying to run an MQTT client on my esp32 wroom32, this is my code, the wifi connection works and I also added dome priantln!() to see if the code was being executed, the problem comes when I call client.publish() function, it doesn't seem to be working and also doesn't print the next println!(). I'm connecting with MQTT Explorer on my Mac to subscribe to the topic I'm publishing from esp32 but nothing in being published. Any ideas?