Skip to content

Does this work with Arduino Boards? #91

Answered by hsaturn
polyphonic13 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, this should work for Arduino too, assuming you have an ehternet board.

The error comes from tiny-mqtt-test.ino

11 #error Unsupported platform

You have to replace here the #error by an include that supports mdns and wificlient.

#include <WiFi.h>
#include <ESPmDNS.h>

If such libs exists, and are compatible with esp ones, you win !
Else, either you write proxies for Wifi/WifiClient and MDNS classes.

Btw, MDNS is not a dependency of TinyMqtt, ony WiFiClient is needed.

Best regards

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@polyphonic13
Comment options

Answer selected by polyphonic13
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