This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Support for Arduino MKR 1010 WiFi
#5
(03-18-2025, 11:02 AM)Jens Noriʇzsɔɥ Wrote: Could you briefly check if this looks ok:
Code:
diff -dur phyphox_BLE.std/src/phyphoxBLE_NanoIOT.cpp phyphox_BLE/src/phyphoxBLE_NanoIOT.cpp
--- phyphox_BLE.std/src/phyphoxBLE_NanoIOT.cpp
+++ phyphox_BLE/src/phyphoxBLE_NanoIOT.cpp
@@ -1,4 +1,4 @@
-#if defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_UNOR4_WIFI)
+#if defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_UNOR4_WIFI) || defined(ARDUINO_SAMD_MKRWIFI1010)

#include "phyphoxBLE_NanoIOT.h"
#include "Arduino.h"
diff -dur phyphox_BLE.std/src/phyphoxBle.h phyphox_BLE/src/phyphoxBle.h
--- phyphox_BLE.std/src/phyphoxBle.h
+++ phyphox_BLE/src/phyphoxBle.h
@@ -53,7 +53,7 @@

#elif defined(ESP32) && !defined(ARDUINO_SENSEBOX_MCU_ESP32S2)
     #include "phyphoxBLE_ESP32.h"
-#elif defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_UNOR4_WIFI)
+#elif defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_UNOR4_WIFI) || defined(ARDUINO_SAMD_MKRWIFI1010)
     #include <ArduinoBLE.h>
     #include "phyphoxBLE_NanoIOT.h"
#elif defined(ARDUINO_ARCH_STM32)

Then I could push it to Dominik in order to add it to our code base. Smile


I did it manually but it looks ok!

Meanwhile my experiment is finished and working. I use ArduinoMKR with Nicla Sense Env board to measure CO2, TVOC, NO2, O3, temp and humidity.
The only limit I am facing now is that phyphoxBLE::write(Data) is limited to 5 Arguments.
Overall, I am very happy with it.
Reply


Messages In This Thread
Support for Arduino MKR 1010 WiFi - by Andorra - 03-16-2025, 03:18 PM
RE: Support for Arduino MKR 1010 WiFi - by Andorra - 03-22-2025, 02:30 PM

Forum Jump: