Skip to content

How to connect my EspMQTTClient object to tagocore using MQTT #43

Closed Answered by RicardoStoklosa
yessicavalencia44 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @yessicavalencia44!

The TagoCore MQTT plugin works very similar to TagoIO, your example should look like this:

EspMQTTClient client
(
"Wi-Fi network name",
"password for your Wi-Fi network",
"localhost", // Localhost or your tagocore ip
"token", // To work with device token
"device token", // Your tagoCore Device Token
"TestClient", // Client name that uniquely identify your device
1883 // The MQTT port, default to 1883. this line can be omitted
);

More information it's available in the plugin docs.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by felipefdl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants