hsaturn / TinyMqtt

ESP 8266 / 32 / WROOM Small footprint Mqtt Broker and Client
GNU General Public License v3.0
183 stars 40 forks source link

Portenta Patch #12

Closed hpssjellis closed 2 years ago

hpssjellis commented 2 years ago

Hi @hsaturn have you seen this patch suggestion from Martino at Arduino?

https://github.com/arduino/ArduinoCore-mbed/pull/281


diff --git a/src/TinyMqtt.h b/src/TinyMqtt.h
index b1a1cd3..6919c48 100644
--- a/src/TinyMqtt.h
+++ b/src/TinyMqtt.h
@@ -14,6 +14,10 @@
        #ifdef TCP_ASYNC
          #include <AsyncTCP.h> // https://github.com/me-no-dev/AsyncTCP
   #endif
+#elif defined(ARDUINO_PORTENTA_H7_M7)
+  #include <WiFi.h>
+  #include <WiFiClient.h>
+  #include <WiFiServer.h>
 #endif
 #ifdef EPOXY_DUINO
   #define dbg_ptr uint64_t

I am testing it out today.

...

....

Later: I think these changes are for the next Arduino MBED release, so I will have to wait a bit before testing them. I can close this for now.