Does this work with Arduino Boards? #91
-
I am attempting to create an MQTT broker on an Arduino MKR Wifi 1010. I found this via the Arduino page here https://www.arduino.cc/reference/en/libraries/tinymqtt/, which states:
The repo though says:
Is there support for standard Arduino boards, or is this only available for Esp boards? `FQBN: arduino:samd:mkrwifi1010 Detecting libraries used... Using library TinyConsole at version 0.4.5 in folder: /Users/paulhoover/Documents/Arduino/libraries/TinyConsole Compilation error: #error Unsupported platform` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 ! Btw, MDNS is not a dependency of TinyMqtt, ony WiFiClient is needed. Best regards |
Beta Was this translation helpful? Give feedback.
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.
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