03-22-2025, 02:30 PM
(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.
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.