diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f8bcce4..0aacd0e 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -14,7 +14,7 @@ If you don't find anything, please [open a new issue](https://github.com/khoih-p Please ensure to specify the following: -* Arduino IDE version (e.g. 1.8.15) or Platform.io version +* Arduino IDE version (e.g. 1.8.16) or Platform.io version * Board Core Version (e.g. Arduino SAMD core v1.8.11, Arduino SAMDUE core v1.6.12, etc.) * Contextual information (e.g. what you were trying to achieve) * Simplest possible steps to reproduce @@ -26,10 +26,10 @@ Please ensure to specify the following: ### Example ``` -Arduino IDE version: 1.8.15 +Arduino IDE version: 1.8.16 Arduino SAMD Core Version 1.8.11 OS: Ubuntu 20.04 LTS -Linux xy-Inspiron-3593 5.4.0-73-generic #82-Ubuntu SMP Wed Apr 14 17:39:42 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux +Linux xy-Inspiron-3593 5.4.0-86-generic #97-Ubuntu SMP Fri Sep 17 19:19:40 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Context: The board couldn't autoreconnect to Local Blynk Server after router power recycling. diff --git a/LibraryPatches/Blynk-1.0.1/Blynk/BlynkDetectDevice.h b/LibraryPatches/Blynk-1.0.1/Blynk/BlynkDetectDevice.h new file mode 100644 index 0000000..e07a3ea --- /dev/null +++ b/LibraryPatches/Blynk-1.0.1/Blynk/BlynkDetectDevice.h @@ -0,0 +1,878 @@ +/**************************************************************************************************************************** + BlynkDetectDevice.h + For ESP8266 AT-command shields + + Blynk_Esp8266AT_WM is a library for the Mega, Teensy, SAM DUE and SAMD boards (https://github.com/khoih-prog/Blynk_Esp8266AT_WM) + to enable easy configuration/reconfiguration and autoconnect/autoreconnect of WiFi/Blynk + + Forked from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases + Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WM + Licensed under MIT license + Version: 1.0.7 + + Original Blynk Library author: + @file BlynkSimpleShieldEsp8266.h + @author Volodymyr Shymanskyy + @license This project is released under the MIT License (MIT) + @copyright Copyright (c) 2015 Volodymyr Shymanskyy + @date Jun 2015 + @brief + + Version Modified By Date Comments + ------- ----------- ---------- ----------- + 1.0.0 K Hoang 16/02/2020 Initial coding + 1.0.1 K Hoang 17/02/2020 Add checksum, fix bug + 1.0.2 K Hoang 22/02/2020 Add support to SAMD boards + 1.0.3 K Hoang 03/03/2020 Add support to STM32 boards, except STM32F0 + 1.0.4 K Hoang 13/03/2020 Add SAM DUE support. Enhance GUI. + 1.0.5 K Hoang 23/06/2020 Add Adafruit SAMD21/SAMD51 and nRF52 support, DRD, MultiWiFi features. + WPA2 SSID PW to 63 chars. Permit special chars such as !,@,#,$,%,^,&,* into data fields. + 1.0.6 K Hoang 27/06/2020 Add ESP32-AT support and use ESP_AT_Lib. Enhance MultiWiFi connection logic. + 1.0.7 K Hoang 27/07/2020 Add support to all STM32F/L/H/G/WB/MP1 and Seeeduino SAMD21/SAMD51 boards. + *****************************************************************************************************************************/ + +#ifndef BlynkDetectDevice_h +#define BlynkDetectDevice_h + +// General defines + +#define BLYNK_NEWLINE "\r\n" + +#define BLYNK_CONCAT(a, b) a ## b +#define BLYNK_CONCAT2(a, b) BLYNK_CONCAT(a, b) + +#define BLYNK_STRINGIFY(x) #x +#define BLYNK_TOSTRING(x) BLYNK_STRINGIFY(x) + +#define BLYNK_COUNT_OF(x) ((sizeof(x)/sizeof(0[x])) / ((size_t)(!(sizeof(x) % sizeof(0[x]))))) + +#define BLYNK_ATTR_PACKED __attribute__ ((__packed__)) +#define BLYNK_NORETURN __attribute__ ((noreturn)) +#define BLYNK_UNUSED __attribute__((__unused__)) +#define BLYNK_DEPRECATED __attribute__ ((deprecated)) +#define BLYNK_CONSTRUCTOR __attribute__((constructor)) + +// Causes problems on some platforms +#define BLYNK_FORCE_INLINE inline //__attribute__((always_inline)) + +#ifndef BLYNK_INFO_CPU + +/****************************************** + ATmega +*/ + +#if defined(__AVR_ATmega168__) +#define BLYNK_INFO_CPU "ATmega168" +#elif defined(__AVR_ATmega328P__) +#define BLYNK_INFO_CPU "ATmega328P" +#elif defined(__AVR_ATmega1280__) +#define BLYNK_INFO_CPU "ATmega1280" +#elif defined(__AVR_ATmega1284__) +#define BLYNK_INFO_CPU "ATmega1284" +#elif defined(__AVR_ATmega2560__) +#define BLYNK_INFO_CPU "ATmega2560" +#elif defined(__AVR_ATmega32U4__) +#define BLYNK_INFO_CPU "ATmega32U4" +#elif defined(__SAM3X8E__) +#define BLYNK_INFO_CPU "AT91SAM3X8E" + +/****************************************** + ATtiny +*/ + +#elif defined(__AVR_ATtiny25__) +#define BLYNK_INFO_CPU "ATtiny25" +#elif defined(__AVR_ATtiny45__) +#define BLYNK_INFO_CPU "ATtiny45" +#elif defined(__AVR_ATtiny85__) +#define BLYNK_INFO_CPU "ATtiny85" +#elif defined(__AVR_ATtiny24__) +#define BLYNK_INFO_CPU "ATtiny24" +#elif defined(__AVR_ATtiny44__) +#define BLYNK_INFO_CPU "ATtiny44" +#elif defined(__AVR_ATtiny84__) +#define BLYNK_INFO_CPU "ATtiny84" +#elif defined(__AVR_ATtiny2313__) +#define BLYNK_INFO_CPU "ATtiny2313" +#elif defined(__AVR_ATtiny4313__) +#define BLYNK_INFO_CPU "ATtiny4313" +#endif +#endif + +#ifndef BLYNK_INFO_DEVICE + +#if defined(ENERGIA) + +#define BLYNK_NO_YIELD +#define BLYNK_USE_128_VPINS +#define BLYNK_USE_INTERNAL_DTOSTRF + +#if defined(ENERGIA_ARCH_MSP430) +#define BLYNK_INFO_DEVICE "LaunchPad MSP430" +#define BLYNK_INFO_CPU "MSP430" +#define BLYNK_NO_FLOAT +#elif defined(ENERGIA_ARCH_MSP432) +#define BLYNK_INFO_DEVICE "LaunchPad MSP432" +#define BLYNK_INFO_CPU "MSP432" +#elif defined(ENERGIA_ARCH_TIVAC) +#define BLYNK_INFO_DEVICE "LaunchPad" + +#elif defined(ENERGIA_ARCH_CC3200EMT) || defined(ENERGIA_ARCH_CC3200) +#define BLYNK_INFO_CONNECTION "CC3200" +#define BLYNK_SEND_CHUNK 64 +#define BLYNK_BUFFERS_SIZE 1024 + +#if defined(ENERGIA_CC3200_LAUNCHXL) //TODO: This is a bug in Energia IDE +#define BLYNK_INFO_DEVICE "CC3200 LaunchXL" +#elif defined(ENERGIA_RedBearLab_CC3200) +#define BLYNK_INFO_DEVICE "RBL CC3200" +#elif defined(ENERGIA_RedBearLab_WiFiMini) +#define BLYNK_INFO_DEVICE "RBL WiFi Mini" +#elif defined(ENERGIA_RedBearLab_WiFiMicro) +#define BLYNK_INFO_DEVICE "RBL WiFi Micro" +#endif +#elif defined(ENERGIA_ARCH_CC3220EMT) || defined(ENERGIA_ARCH_CC3220) +#define BLYNK_INFO_CONNECTION "CC3220" +#define BLYNK_SEND_CHUNK 64 +#define BLYNK_BUFFERS_SIZE 1024 + +#define BLYNK_INFO_DEVICE "CC3220" +#define BLYNK_INFO_CPU "CC3220" +#endif + +#if !defined(BLYNK_INFO_DEVICE) +#define BLYNK_INFO_DEVICE "Energia" +#endif + +#elif defined(LINUX) + +#define BLYNK_INFO_DEVICE "Linux" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 4096 + +#elif defined(SPARK) || defined(PARTICLE) + +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 + +#if PLATFORM_ID==0 +#define BLYNK_INFO_DEVICE "Particle Core" +#undef BLYNK_BUFFERS_SIZE // Use default on Core +#elif PLATFORM_ID==6 +#define BLYNK_INFO_DEVICE "Particle Photon" +#elif PLATFORM_ID==8 +#define BLYNK_INFO_DEVICE "Particle P1" +#elif PLATFORM_ID==9 +#define BLYNK_INFO_DEVICE "Particle Ethernet" +#elif PLATFORM_ID==10 +#define BLYNK_INFO_DEVICE "Particle Electron" +#elif PLATFORM_ID==31 +#define BLYNK_INFO_DEVICE "Particle RPi" +#elif PLATFORM_ID==82 +#define BLYNK_INFO_DEVICE "Digistump Oak" +#elif PLATFORM_ID==88 +#define BLYNK_INFO_DEVICE "RedBear Duo" +#elif PLATFORM_ID==103 +#define BLYNK_INFO_DEVICE "Bluz" +#else +#if defined(BLYNK_DEBUG_ALL) +#warning "Cannot detect board type" +#endif +#define BLYNK_INFO_DEVICE "Particle" +#endif + +#elif defined(__MBED__) + +#define BLYNK_INFO_DEVICE "MBED" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 512 +#define noInterrupts() __disable_irq() +#define interrupts() __enable_irq() + +#elif defined(ARDUINO) && defined(MPIDE) +#define BLYNK_NO_YIELD + +#if defined(_BOARD_UNO_) +#define BLYNK_INFO_DEVICE "chipKIT Uno32" +#else +#define BLYNK_INFO_DEVICE "chipKIT" +#endif + +#elif defined(ARDUINO) && defined(ARDUINO_AMEBA) +#if defined(BOARD_RTL8710) +#define BLYNK_INFO_DEVICE "RTL8710" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 +#elif defined(BOARD_RTL8711AM) +#define BLYNK_INFO_DEVICE "RTL8711AM" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 +#elif defined(BOARD_RTL8195A) +#define BLYNK_INFO_DEVICE "RTL8195A" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 +#else +#define BLYNK_INFO_DEVICE "Ameba" +#endif + +#elif defined(ARDUINO) && defined(TEENSYDUINO) + +// KH +#if defined(__IMXRT1062__) +#define BLYNK_INFO_DEVICE "Teensy 4.1/4.0" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 2048 +#elif defined(__MK66FX1M0__) +#define BLYNK_INFO_DEVICE "Teensy 3.6" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 +#elif defined(__MK64FX512__) +#define BLYNK_INFO_DEVICE "Teensy 3.5" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 +#elif defined(__MK20DX256__) +#define BLYNK_INFO_DEVICE "Teensy 3.2/3.1" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 +#elif defined(__MK20DX128__) +#define BLYNK_INFO_DEVICE "Teensy 3.0" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 +#elif defined(__MKL26Z64__) +#define BLYNK_INFO_DEVICE "Teensy LC" +#define BLYNK_BUFFERS_SIZE 512 +#elif defined(ARDUINO_ARCH_AVR) +#define BLYNK_INFO_DEVICE "Teensy 2.0" +#else +#define BLYNK_INFO_DEVICE "Teensy" +#endif + +#elif defined(ARDUINO) + +#if defined(ARDUINO_ARCH_SAMD) || defined(ESP32) || defined(ESP8266) +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 +#endif + +/* Arduino AVR */ +#if defined(ARDUINO_AVR_NANO) +#define BLYNK_INFO_DEVICE "Arduino Nano" +#elif defined(ARDUINO_AVR_UNO) || defined(ARDUINO_AVR_DUEMILANOVE) +#define BLYNK_INFO_DEVICE "Arduino Uno" +#elif defined(ARDUINO_AVR_YUN) +#define BLYNK_INFO_DEVICE "Arduino Yun" +#elif defined(ARDUINO_AVR_MINI) +#define BLYNK_INFO_DEVICE "Arduino Mini" +#elif defined(ARDUINO_AVR_ETHERNET) +#define BLYNK_INFO_DEVICE "Arduino Ethernet" +#elif defined(ARDUINO_AVR_FIO) +#define BLYNK_INFO_DEVICE "Arduino Fio" +#elif defined(ARDUINO_AVR_BT) +#define BLYNK_INFO_DEVICE "Arduino BT" +#elif defined(ARDUINO_AVR_PRO) +#define BLYNK_INFO_DEVICE "Arduino Pro" +#elif defined(ARDUINO_AVR_NG) +#define BLYNK_INFO_DEVICE "Arduino NG" +#elif defined(ARDUINO_AVR_GEMMA) +#define BLYNK_INFO_DEVICE "Arduino Gemma" +#elif defined(ARDUINO_AVR_MEGA) || defined(ARDUINO_AVR_MEGA2560) +#define BLYNK_INFO_DEVICE "Arduino Mega" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 +#elif defined(ARDUINO_AVR_ADK) +#define BLYNK_INFO_DEVICE "Arduino Mega ADK" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 +#elif defined(ARDUINO_AVR_LEONARDO) +#define BLYNK_INFO_DEVICE "Arduino Leonardo" +#elif defined(ARDUINO_AVR_MICRO) +#define BLYNK_INFO_DEVICE "Arduino Micro" +#elif defined(ARDUINO_AVR_ESPLORA) +#define BLYNK_INFO_DEVICE "Arduino Esplora" +#elif defined(ARDUINO_AVR_LILYPAD) +#define BLYNK_INFO_DEVICE "Lilypad" +#elif defined(ARDUINO_AVR_LILYPAD_USB) +#define BLYNK_INFO_DEVICE "Lilypad USB" +#elif defined(ARDUINO_AVR_ROBOT_MOTOR) +#define BLYNK_INFO_DEVICE "Robot Motor" +#elif defined(ARDUINO_AVR_ROBOT_CONTROL) +#define BLYNK_INFO_DEVICE "Robot Control" + +/* Arduino megaAVR */ +#elif defined(ARDUINO_AVR_UNO_WIFI_REV2) +#define BLYNK_INFO_DEVICE "Arduino UNO WiFi Rev2" + +/* Arduino SAM */ +#elif defined(ARDUINO_SAM_DUE) +#define BLYNK_INFO_DEVICE "Arduino Due" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 + +/* Arduino SAMD */ +// KH +//////////////////////////////////// +#elif ( defined(ARDUINO_SAMD_ZERO) || defined(ARDUINO_SAMD_MKR1000) || defined(ARDUINO_SAMD_MKRWIFI1010) \ + || defined(ARDUINO_SAMD_NANO_33_IOT) || defined(ARDUINO_SAMD_MKRFox1200) || defined(ARDUINO_SAMD_MKRWAN1300) || defined(ARDUINO_SAMD_MKRWAN1310) \ + || defined(ARDUINO_SAMD_MKRGSM1400) || defined(ARDUINO_SAMD_MKRNB1500) || defined(ARDUINO_SAMD_MKRVIDOR4000) || defined(__SAMD21G18A__) \ + || defined(ARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS) || defined(__SAMD21E18A__) || defined(__SAMD51__) || defined(__SAMD51J20A__) || defined(__SAMD51J19A__) \ + || defined(__SAMD51G19A__) || defined(__SAMD51P19A__) || defined(__SAMD21G18A__) ) + +#define BLYNK_USE_128_VPINS + +#if defined(BLYNK_BUFFERS_SIZE) + #undef BLYNK_BUFFERS_SIZE +#endif +#define BLYNK_BUFFERS_SIZE 4096 + +#if ( defined(ARDUINO_SAMD_ZERO) && !defined(SEEED_XIAO_M0) && !defined(SEEEDUINO_ZERO) ) + #define BLYNK_INFO_DEVICE "Arduino Zero" + #elif defined(ARDUINO_SAMD_MKR1000) + #define BLYNK_INFO_DEVICE "MKR1000" + #elif defined(ARDUINO_SAMD_MKRZERO) + #define BLYNK_INFO_DEVICE "MKRZERO" + #elif defined(ARDUINO_SAMD_MKRNB1500) + #define BLYNK_INFO_DEVICE "MKR NB 1500" + #elif defined(ARDUINO_SAMD_MKRGSM1400) + #define BLYNK_INFO_DEVICE "MKR GSM 1400" + #elif defined(ARDUINO_SAMD_MKRWAN1300) + #define BLYNK_INFO_DEVICE "MKR WAN 1300" + #elif defined(ARDUINO_SAMD_MKRFox1200) + #define BLYNK_INFO_DEVICE "MKR FOX 1200" + #elif defined(ARDUINO_SAMD_MKRWIFI1010) + #define BLYNK_INFO_DEVICE "MKR WiFi 1010" + #elif defined(ARDUINO_SAMD_MKRVIDOR4000) + #define BLYNK_INFO_DEVICE "MKR Vidor 4000" + //KH + #elif defined(ARDUINO_SAMD_NANO_33_IOT) + #define BLYNK_INFO_DEVICE "NANO_33_IOT" + #elif defined(ARDUINO_SAMD_MKRWAN1310) + #define BLYNK_INFO_DEVICE "MKR WAN 1310" + #elif defined(ARDUINO_SAMD_CIRCUITPLAYGROUND_EXPRESS) + #define BLYNK_INFO_DEVICE "ADAFRUIT CP EXPRESS" + #elif defined(ADAFRUIT_FEATHER_M0_EXPRESS) + #define BLYNK_INFO_DEVICE "ADAFRUIT_FEATHER_M0_EXPRESS" + #elif defined(ADAFRUIT_METRO_M0_EXPRESS) + #define BLYNK_INFO_DEVICE "ADAFRUIT_METRO_M0_EXPRESS" + #elif defined(ADAFRUIT_CIRCUITPLAYGROUND_M0) + #define BLYNK_INFO_DEVICE "ADAFRUIT_CIRCUITPLAYGROUND_M0" + #elif defined(ADAFRUIT_GEMMA_M0) + #define BLYNK_INFO_DEVICE "ADAFRUIT_GEMMA_M0" + #elif defined(ADAFRUIT_TRINKET_M0) + #define BLYNK_INFO_DEVICE "ADAFRUIT_TRINKET_M0" + #elif defined(ADAFRUIT_ITSYBITSY_M0) + #define BLYNK_INFO_DEVICE "ADAFRUIT_ITSYBITSY_M0" + #elif defined(ARDUINO_SAMD_HALLOWING_M0) + #define BLYNK_INFO_DEVICE "ARDUINO_SAMD_HALLOWING_M0" + #elif defined(ADAFRUIT_METRO_M4_EXPRESS) + #define BLYNK_INFO_DEVICE "ADAFRUIT_METRO_M4_EXPRESS" + #elif defined(ADAFRUIT_GRAND_CENTRAL_M4) + #define BLYNK_INFO_DEVICE "ADAFRUIT_GRAND_CENTRAL_M4" + #elif defined(ADAFRUIT_FEATHER_M4_EXPRESS) + #define BLYNK_INFO_DEVICE "ADAFRUIT_FEATHER_M4_EXPRESS" + #elif defined(ADAFRUIT_ITSYBITSY_M4_EXPRESS) + #define BLYNK_INFO_DEVICE "ADAFRUIT_ITSYBITSY_M4_EXPRESS" + #elif defined(ADAFRUIT_TRELLIS_M4_EXPRESS) + #define BLYNK_INFO_DEVICE "ADAFRUIT_TRELLIS_M4_EXPRESS" + #elif defined(ADAFRUIT_PYPORTAL) + #define BLYNK_INFO_DEVICE "ADAFRUIT_PYPORTAL" + #elif defined(ADAFRUIT_PYPORTAL_M4_TITANO) + #define BLYNK_INFO_DEVICE "ADAFRUIT_PYPORTAL_M4_TITANO" + #elif defined(ADAFRUIT_PYBADGE_M4_EXPRESS) + #define BLYNK_INFO_DEVICE "ADAFRUIT_PYBADGE_M4_EXPRESS" + #elif defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE) + #define BLYNK_INFO_DEVICE "ADAFRUIT_METRO_M4_AIRLIFT_LITE" + #elif defined(ADAFRUIT_PYGAMER_M4_EXPRESS) + #define BLYNK_INFO_DEVICE "ADAFRUIT_PYGAMER_M4_EXPRESS" + #elif defined(ADAFRUIT_PYGAMER_ADVANCE_M4_EXPRESS) + #define BLYNK_INFO_DEVICE "ADAFRUIT_PYGAMER_ADVANCE_M4_EXPRESS" + #elif defined(ADAFRUIT_PYBADGE_AIRLIFT_M4) + #define BLYNK_INFO_DEVICE "ADAFRUIT_PYBADGE_AIRLIFT_M4" + #elif defined(ADAFRUIT_MONSTER_M4SK_EXPRESS) + #define BLYNK_INFO_DEVICE "ADAFRUIT_MONSTER_M4SK_EXPRESS" + #elif defined(ADAFRUIT_HALLOWING_M4_EXPRESS) + #define BLYNK_INFO_DEVICE "ADAFRUIT_HALLOWING_M4_EXPRESS" + #elif defined(SEEED_WIO_TERMINAL) + #define BLYNK_INFO_DEVICE "SAMD SEEED_WIO_TERMINAL" + #elif defined(SEEED_FEMTO_M0) + #define BLYNK_INFO_DEVICE "SAMD SEEED_FEMTO_M0" + #elif defined(SEEED_XIAO_M0) + #define BLYNK_INFO_DEVICE "SAMD SEEED_XIAO_M0" + #elif defined(Wio_Lite_MG126) + #define BLYNK_INFO_DEVICE "SAMD SEEED Wio_Lite_MG126" + #elif defined(WIO_GPS_BOARD) + #define BLYNK_INFO_DEVICE "SAMD SEEED WIO_GPS_BOARD" + #elif defined(SEEEDUINO_ZERO) + #define BLYNK_INFO_DEVICE "SAMD SEEEDUINO_ZERO" + #elif defined(SEEEDUINO_LORAWAN) + #define BLYNK_INFO_DEVICE "SAMD SEEEDUINO_LORAWAN" + #elif defined(SEEED_GROVE_UI_WIRELESS) + #define BLYNK_INFO_DEVICE "SAMD SEEED_GROVE_UI_WIRELESS" + #elif defined(__SAMD21E18A__) + #define BLYNK_INFO_DEVICE "SAMD21E18A" + #elif defined(__SAMD21G18A__) + #define BLYNK_INFO_DEVICE "SAMD21G18A" + #elif defined(__SAMD51G19A__) + #define BLYNK_INFO_DEVICE "SAMD51G19A" + #elif defined(__SAMD51J19A__) + #define BLYNK_INFO_DEVICE "SAMD51J19A" + #elif defined(__SAMD51J20A__) + #define BLYNK_INFO_DEVICE "SAMD51J20A" + #elif defined(__SAM3X8E__) + #define BLYNK_INFO_DEVICE "SAM3X8E" + #elif defined(__CPU_ARC__) + #define BLYNK_INFO_DEVICE "CPU_ARC" + #elif defined(__SAMD51__) + #define BLYNK_INFO_DEVICE "SAMD51" +#endif +/////////////////////////////////////// + +/* Intel */ +#elif defined(ARDUINO_GALILEO) +#define BLYNK_INFO_DEVICE "Galileo" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 4096 +#elif defined(ARDUINO_GALILEOGEN2) +#define BLYNK_INFO_DEVICE "Galileo Gen2" +#define BLYNK_BUFFERS_SIZE 4096 +#define BLYNK_USE_128_VPINS +#elif defined(ARDUINO_EDISON) +#define BLYNK_INFO_DEVICE "Edison" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 4096 +#elif defined(ARDUINO_ARCH_ARC32) +#define BLYNK_INFO_DEVICE "Arduino 101" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 + +/* Konekt */ +#elif defined(ARDUINO_DASH) +#define BLYNK_INFO_DEVICE "Dash" +#elif defined(ARDUINO_DASHPRO) +#define BLYNK_INFO_DEVICE "Dash Pro" + +/* Red Bear Lab */ +#elif defined(ARDUINO_RedBear_Duo) +#define BLYNK_INFO_DEVICE "RedBear Duo" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 +#elif defined(ARDUINO_BLEND) +#define BLYNK_INFO_DEVICE "Blend" +#elif defined(ARDUINO_BLEND_MICRO_8MHZ) || defined(ARDUINO_BLEND_MICRO_16MHZ) +#define BLYNK_INFO_DEVICE "Blend Micro" +#elif defined(ARDUINO_RBL_nRF51822) +#define BLYNK_INFO_DEVICE "BLE Nano" + +/* ESP8266 */ +#elif defined(ARDUINO_ESP8266_NODEMCU) +#define BLYNK_INFO_DEVICE "NodeMCU" +#elif defined(ARDUINO_ARCH_ESP8266) +#define BLYNK_INFO_DEVICE "ESP8266" + +/* ESP32 */ +#elif defined(ARDUINO_ARCH_ESP32) +#define BLYNK_INFO_DEVICE "ESP32" + +// KH, Arduino_Core_STM32 +///////////////////////// +#elif defined(STM32F0) + #define BLYNK_INFO_DEVICE "STM32F0" + #define BLYNK_NO_YIELD +#elif defined(STM32F1) + #define BLYNK_INFO_DEVICE "STM32F1" + #define BLYNK_NO_YIELD +#elif defined(STM32F2) + #define BLYNK_INFO_DEVICE "STM32F2" + #define BLYNK_NO_YIELD +#elif defined(STM32F3) + #define BLYNK_INFO_DEVICE "STM32F3" + #define BLYNK_NO_YIELD +#elif defined(STM32F4) + + #if defined(ARDUINO_NUCLEO_F429ZI) + #define BLYNK_INFO_DEVICE "STM32 NUCLEO_F429ZI" + #elif defined(ARDUINO_NUCLEO_F401RE) + #define BLYNK_INFO_DEVICE "STM32 NUCLEO_F401RE" + #elif defined(ARDUINO_NUCLEO_F411RE) + #define BLYNK_INFO_DEVICE "STM32 NUCLEO_F411RE" + #elif defined(ARDUINO_NUCLEO_F446RE) + #define BLYNK_INFO_DEVICE "STM32 NUCLEO_F446RE" + #elif defined(ARDUINO_DISCO_F407VG) + #define BLYNK_INFO_DEVICE "STM32 DISCO_F407VG" + #elif defined(ARDUINO_DISCO_F413ZH) + #define BLYNK_INFO_DEVICE "STM32 DISCO_F413ZH" + #elif defined(ARDUINO_BLACK_F407VE) + #define BLYNK_INFO_DEVICE "STM32 BLACK_F407VE" + #elif defined(ARDUINO_BLACK_F407VG) + #define BLYNK_INFO_DEVICE "STM32 BLACK_F407VG" + #elif defined(ARDUINO_BLACK_F407ZE) + #define BLYNK_INFO_DEVICE "STM32 BLACK_F407ZE" + #elif defined(ARDUINO_BLACK_F407ZG) + #define BLYNK_INFO_DEVICE "STM32 BLACK_F407ZG" + #elif defined(ARDUINO_BLUE_F407VE_Mini) + #define BLYNK_INFO_DEVICE "STM32 BLUE_F407VE_Mini" + #elif defined(ARDUINO_DIYMORE_F407VGT) + #define BLYNK_INFO_DEVICE "STM32 DIYMORE_F407VGT" + #elif defined(ARDUINO_FK407M1) + #define BLYNK_INFO_DEVICE "STM32F407VET FK407M1" + #elif defined(ARDUINO_BLACKPILL_F401CC) + #define BLYNK_INFO_DEVICE "STM32 BLACKPILL_F401CC" + #elif defined(ARDUINO_BLACKPILL_F411CE) + #define BLYNK_INFO_DEVICE "STM32 BLACKPILL_F411CE" + #elif defined(ARDUINO_CoreBoard_F401RC) + #define BLYNK_INFO_DEVICE "STM32 CoreBoard_F401RC" + #elif defined(ARDUINO_FEATHER_F405) + #define BLYNK_INFO_DEVICE "STM32 Adafruit_FEATHER_F405" + #elif defined(ARDUINO_THUNDERPACK_F411) + #define BLYNK_INFO_DEVICE "STM32 THUNDERPACK_F411" + #elif defined(ARDUINO_GENERIC_F446RE) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F446RE" + #elif defined(ARDUINO_GENERIC_F446RC) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F446RC" + #elif defined(ARDUINO_GENERIC_F423RH) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F423RH" + #elif defined(ARDUINO_GENERIC_F423CH) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F423CH" + #elif defined(ARDUINO_GENERIC_F417VG) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F417VG" + #elif defined(ARDUINO_GENERIC_F417VE) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F417VE" + #elif defined(ARDUINO_GENERIC_F415RG) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F415RG" + #elif defined(ARDUINO_GENERIC_F413RH) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F413RH" + #elif defined(ARDUINO_GENERIC_F413RG) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F413RG" + #elif defined(ARDUINO_GENERIC_F413CH) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F413CH" + #elif defined(ARDUINO_GENERIC_F413CG) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F413CG" + #elif defined(ARDUINO_GENERIC_F412RG) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F412RG" + #elif defined(ARDUINO_GENERIC_F412RE) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F412RE" + #elif defined(ARDUINO_GENERIC_F412CG) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F412CG" + #elif defined(ARDUINO_GENERIC_F412CE) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F412CE" + #elif defined(ARDUINO_GENERIC_F411RE) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F411RE" + #elif defined(ARDUINO_GENERIC_F411RC) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F411RC" + #elif defined(ARDUINO_GENERIC_F411CE) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F411CE" + #elif defined(ARDUINO_GENERIC_F411CC) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F411CC" + #elif defined(ARDUINO_GENERIC_F410RB) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F410RB" + #elif defined(ARDUINO_GENERIC_F410R8) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F410R8" + #elif defined(ARDUINO_GENERIC_F410CB) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F410CB" + #elif defined(ARDUINO_GENERIC_F410C8) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F410C8" + #elif defined(ARDUINO_GENERIC_F407VG) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F407VG" + #elif defined(ARDUINO_GENERIC_F407VE) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F407VE" + #elif defined(ARDUINO_GENERIC_F405RG) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F405RG" + #elif defined(ARDUINO_GENERIC_F401RE) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F401RE" + #elif defined(ARDUINO_GENERIC_F401RD) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F401RD" + #elif defined(ARDUINO_GENERIC_F401RC) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F401RC" + #elif defined(ARDUINO_GENERIC_F401RB) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F401RB" + #elif defined(ARDUINO_GENERIC_F401CE) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F401CE" + #elif defined(ARDUINO_GENERIC_F401CD) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F401CD" + #elif defined(ARDUINO_GENERIC_F401CC) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F401CC" + #elif defined(ARDUINO_GENERIC_F401CB) + #define BLYNK_INFO_DEVICE "STM32 GENERIC_F401CB" + #elif defined(ARDUINO_ARMED_V1) + #define BLYNK_INFO_DEVICE "STM32 ARMED_V1" + #elif defined(ARDUINO_RUMBA32_F446VE) + #define BLYNK_INFO_DEVICE "STM32 RUMBA32_F446VE" + #elif defined(ARDUINO_ST3DP001_EVAL) + #define BLYNK_INFO_DEVICE "STM32 ST3DP001_EVAL" + #elif defined(ARDUINO_PRNTR_F407_V1) + #define BLYNK_INFO_DEVICE "STM32 PRNTR_F407_V1" + #elif defined(ARDUINO_PRNTR_V2) + #define BLYNK_INFO_DEVICE "STM32 PRNTR_V2" + #elif defined(ARDUINO_VAKE403) + #define BLYNK_INFO_DEVICE "STM32 VAKE403" + #elif defined(ARDUINO_FYSETC_S6) + #define BLYNK_INFO_DEVICE "STM32 FYSETC_S6" + #elif defined(ARDUINO_PYBSTICK26_LITE) + #define BLYNK_INFO_DEVICE "STM32 PYBSTICK26_LITE" + #elif defined(ARDUINO_PYBSTICK26_STD) + #define BLYNK_INFO_DEVICE "STM32 PYBSTICK26_STD" + #elif defined(ARDUINO_PYBSTICK26_PRO) + #define BLYNK_INFO_DEVICE "STM32 PYBSTICK26_PRO" + #else + #define BLYNK_INFO_DEVICE "STM32F4" + #endif + + #define BLYNK_USE_128_VPINS + #define BLYNK_BUFFERS_SIZE 1024 + #define BLYNK_NO_YIELD + +#elif defined(STM32F7) + + #if defined(ARDUINO_NUCLEO_F767ZI) + #define BLYNK_INFO_DEVICE "STM32 NUCLEO_F767ZI" + #elif defined(ARDUINO_NUCLEO_F746ZG) + #define BLYNK_INFO_DEVICE "STM32 NUCLEO_F746ZG" + #elif defined(ARDUINO_NUCLEO_F756ZG) + #define BLYNK_INFO_DEVICE "STM32 NUCLEO_F756ZG" + #elif defined(ARDUINO_NUCLEO_F743ZI) + #define BLYNK_INFO_DEVICE "STM32 NUCLEO_F743ZI" + #elif defined(ARDUINO_NUCLEO_F743ZI2) + #define BLYNK_INFO_DEVICE "STM32 NUCLEO_F743ZI2" + #elif defined(ARDUINO_DISCO_F746NG) + #define BLYNK_INFO_DEVICE "STM32 DISCO_F746NG" + #elif defined(ARDUINO_REMRAM_V1) + #define BLYNK_INFO_DEVICE "STM32 REMRAM_V1" + #else + #define BLYNK_INFO_DEVICE "STM32F7" + #endif + + #define BLYNK_USE_128_VPINS + #define BLYNK_BUFFERS_SIZE 4096 + #define BLYNK_NO_YIELD + +#elif defined(STM32L0) + + #if defined(ARDUINO_NUCLEO_L053R8) + #define BLYNK_INFO_DEVICE "STM32 NUCLEO_L053R8" + #elif defined(ARDUINO_NUCLEO_L073RZ) + #define BLYNK_INFO_DEVICE "STM32 NUCLEO_L073RZ" + #elif defined(ARDUINO_NUCLEO_L031K6) + #define BLYNK_INFO_DEVICE "STM32 NUCLEO_L031K6" + #elif defined(ARDUINO_DISCO_L072CZ_LRWAN1) + #define BLYNK_INFO_DEVICE "STM32 DISCO_L072CZ_LRWAN1" + #elif defined(ARDUINO_RHF76_052) + #define BLYNK_INFO_DEVICE "STM32 RHF76_052" + #elif defined(ARDUINO_THUNDERPACK_L072) + #define BLYNK_INFO_DEVICE "STM32 THUNDERPACK_L072" + #else + #define BLYNK_INFO_DEVICE "STM32L0" + #endif + + #define BLYNK_USE_128_VPINS + #define BLYNK_BUFFERS_SIZE 1024 + #define BLYNK_NO_YIELD + +#elif defined(STM32L1) + + #define BLYNK_INFO_DEVICE "STM32L1" + + #define BLYNK_USE_128_VPINS + #define BLYNK_BUFFERS_SIZE 1024 + #define BLYNK_NO_YIELD + +#elif defined(STM32L4) + + #define BLYNK_INFO_DEVICE "STM32L4" + + #define BLYNK_USE_128_VPINS + #define BLYNK_BUFFERS_SIZE 1024 + #define BLYNK_NO_YIELD +#elif defined(STM32H7) + + #define BLYNK_INFO_DEVICE "STM32H7" + #define BLYNK_USE_128_VPINS + #define BLYNK_BUFFERS_SIZE 1024 + #define BLYNK_NO_YIELD + +#elif defined(STM32G0) + + #define BLYNK_INFO_DEVICE "STM32G0" + #define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 +#define BLYNK_NO_YIELD +#elif defined(STM32G4) + + #define BLYNK_INFO_DEVICE "STM32G4" + + #define BLYNK_USE_128_VPINS + #define BLYNK_BUFFERS_SIZE 1024 + #define BLYNK_NO_YIELD +#elif defined(STM32WB) + + #define BLYNK_INFO_DEVICE "STM32WB" + + #define BLYNK_USE_128_VPINS + #define BLYNK_BUFFERS_SIZE 1024 + #define BLYNK_NO_YIELD + +#elif defined(STM32MP1) + + #define BLYNK_INFO_DEVICE "STM32MP1" + + #define BLYNK_USE_128_VPINS + #define BLYNK_BUFFERS_SIZE 1024 + #define BLYNK_NO_YIELD + + + +//////////////////////////// + +/* STM32 */ +#elif defined(ARDUINO_ARCH_STM32F1) +#define BLYNK_INFO_DEVICE "STM32F1" +#define BLYNK_NO_YIELD +#elif defined(ARDUINO_ARCH_STM32F3) +#define BLYNK_INFO_DEVICE "STM32F3" +#define BLYNK_NO_YIELD +#elif defined(ARDUINO_ARCH_STM32F4) +#define BLYNK_INFO_DEVICE "STM32F4" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 +#define BLYNK_NO_YIELD + + +/* Digistump */ +#elif defined(ARDUINO_ESP8266_OAK) +#define BLYNK_INFO_DEVICE "Oak" +#define BLYNK_USE_128_VPINS +#elif defined(ARDUINO_AVR_DIGISPARK) +#define BLYNK_INFO_DEVICE "Digispark" +#define BLYNK_NO_YIELD +#elif defined(ARDUINO_AVR_DIGISPARKPRO) +#define BLYNK_INFO_DEVICE "Digispark Pro" +#define BLYNK_NO_YIELD + +/* Microduino */ +#elif defined(ARDUINO_AVR_USB) +#define BLYNK_INFO_DEVICE "CoreUSB" +#elif defined(ARDUINO_AVR_PLUS) +#define BLYNK_INFO_DEVICE "Core+" +#elif defined(ARDUINO_AVR_RF) +#define BLYNK_INFO_DEVICE "CoreRF" + +/* Wildfire */ +#elif defined(ARDUINO_WILDFIRE_V2) +#define BLYNK_INFO_DEVICE "Wildfire V2" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 +#elif defined(ARDUINO_WILDFIRE_V3) +#define BLYNK_INFO_DEVICE "Wildfire V3" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 +#elif defined(ARDUINO_WILDFIRE_V4) +#define BLYNK_INFO_DEVICE "Wildfire V4" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 + +/* Simblee */ +#elif defined(__Simblee__) +#define BLYNK_INFO_DEVICE "Simblee" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 512 + +/* RFduino */ +#elif defined(__RFduino__) +#define BLYNK_INFO_DEVICE "RFduino" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 512 + +/* Nordic nRF2 */ +// KH +///////////////////////////////////// +#elif ( defined(NRF52840_FEATHER) || defined(NRF52832_FEATHER) || defined(NRF52_SERIES) || defined(ARDUINO_NRF52_ADAFRUIT) || \ + defined(NRF52840_FEATHER_SENSE) || defined(NRF52840_ITSYBITSY) || defined(NRF52840_CIRCUITPLAY) || defined(NRF52840_CLUE) || \ + defined(NRF52840_METRO) || defined(NRF52840_PCA10056) || defined(PARTICLE_XENON) || defined(NINA_B302_ublox) || defined(NINA_B112_ublox) ) + +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 4096 +#warning Use nRF52 boards in BlynkDetectDevice.h + +#if defined(NRF52840_FEATHER) +#define BLYNK_INFO_DEVICE "NRF52840_FEATHER_EXPRESS" +#elif defined(NRF52832_FEATHER) +#define BLYNK_INFO_DEVICE "NRF52832_FEATHER" +#elif defined(NRF52840_FEATHER_SENSE) +#define BLYNK_INFO_DEVICE "NRF52840_FEATHER_SENSE" +#elif defined(NRF52840_ITSYBITSY) +#define BLYNK_INFO_DEVICE "NRF52840_ITSYBITSY_EXPRESS" +#elif defined(NRF52840_CIRCUITPLAY) +#define BLYNK_INFO_DEVICE "NRF52840_CIRCUIT_PLAYGROUND" +#elif defined(NRF52840_CLUE) +#define BLYNK_INFO_DEVICE "NRF52840_CLUE" +#elif defined(NRF52840_METRO) +#define BLYNK_INFO_DEVICE "NRF52840_METRO_EXPRESS" +#elif defined(NRF52840_PCA10056) +#define BLYNK_INFO_DEVICE "NORDIC_NRF52840DK" +#elif defined(NINA_B302_ublox) +#define BLYNK_INFO_DEVICE "NINA_B302_ublox" +#elif defined(NINA_B112_ublox) +#define BLYNK_INFO_DEVICE "NINA_B112_ublox" +#elif defined(PARTICLE_XENON) +#define BLYNK_INFO_DEVICE "PARTICLE_XENON" +#elif defined(MDBT50Q_RX) +#define BLYNK_INFO_DEVICE "RAYTAC_MDBT50Q_RX" +#elif defined(ARDUINO_NRF52_ADAFRUIT) +#define BLYNK_INFO_DEVICE "ARDUINO_NRF52_ADAFRUIT" +#else +#define BLYNK_INFO_DEVICE "nRF52 Unknown" +#endif + +///////////////////////////////////// + +/* Nordic NRF5x */ +#elif defined(ARDUINO_ARCH_NRF5) +#define BLYNK_INFO_DEVICE "nRF5" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 512 + +#else +#if defined(BLYNK_DEBUG_ALL) +#warning "Cannot detect board type" +#endif +#define BLYNK_INFO_DEVICE "Arduino" +#endif + +#elif defined(TI_CC3220) +#define BLYNK_INFO_DEVICE "TI CC3220" +#define BLYNK_USE_128_VPINS +#define BLYNK_BUFFERS_SIZE 1024 + +#define BLYNK_USE_INTERNAL_DTOSTRF + +#else + +#define BLYNK_INFO_DEVICE "Custom platform" + +#endif + +#if !defined(BLYNK_MAX_READBYTES) && defined(BLYNK_BUFFERS_SIZE) +#define BLYNK_MAX_READBYTES BLYNK_BUFFERS_SIZE +#endif + +#if !defined(BLYNK_MAX_SENDBYTES) && defined(BLYNK_BUFFERS_SIZE) +#define BLYNK_MAX_SENDBYTES BLYNK_BUFFERS_SIZE +#endif + +// Print diagnostics + +#if defined(BLYNK_DEBUG_ALL) +#if defined(BLYNK_INFO_DEVICE) +#pragma message ("BLYNK_INFO_DEVICE=" BLYNK_TOSTRING(BLYNK_INFO_DEVICE)) +#endif + +#if defined(BLYNK_INFO_CPU) +#pragma message ("BLYNK_INFO_CPU=" BLYNK_TOSTRING(BLYNK_INFO_CPU)) +#endif + +#if defined(BLYNK_BUFFERS_SIZE) +#pragma message ("BLYNK_BUFFERS_SIZE=" BLYNK_TOSTRING(BLYNK_BUFFERS_SIZE)) +#endif +#endif + +#endif + +#endif diff --git a/LibraryPatches/Blynk-1.0.1/utility/BlynkDebug.cpp b/LibraryPatches/Blynk-1.0.1/utility/BlynkDebug.cpp new file mode 100644 index 0000000..672b4b3 --- /dev/null +++ b/LibraryPatches/Blynk-1.0.1/utility/BlynkDebug.cpp @@ -0,0 +1,335 @@ +/** + * @file BlynkDebug.cpp + * @author Volodymyr Shymanskyy + * @license This project is released under the MIT License (MIT) + * @copyright Copyright (c) 2015 Volodymyr Shymanskyy + * @date Jan 2015 + * @brief Debug utilities for Arduino + */ +#include + +#if defined(ARDUINO) && defined(__AVR__) && defined(BLYNK_USE_AVR_WDT) + + #include + #include + + BLYNK_CONSTRUCTOR + static void BlynkSystemInit() + { + MCUSR = 0; + wdt_disable(); + } + + void BlynkReset() + { + wdt_enable(WDTO_15MS); + delay(50); + void(*resetFunc)(void) = 0; + resetFunc(); + for(;;) {} // To make compiler happy + } + + size_t BlynkFreeRam() + { + extern int __heap_start, *__brkval; + int v; + return (int) &v - (__brkval == 0 ? (int) &__heap_start : (int) __brkval); + } + + #define _BLYNK_USE_DEFAULT_MILLIS + #define _BLYNK_USE_DEFAULT_DELAY + +#elif defined(ARDUINO) && defined(__AVR__) + + #include + + void BlynkReset() + { + void(*resetFunc)(void) = 0; + resetFunc(); + for(;;) {} + } + + size_t BlynkFreeRam() + { + extern int __heap_start, *__brkval; + int v; + return (int) &v - (__brkval == 0 ? (int) &__heap_start : (int) __brkval); + } + + #define _BLYNK_USE_DEFAULT_MILLIS + #define _BLYNK_USE_DEFAULT_DELAY + +#elif defined(ARDUINO) && defined(ESP8266) + + #include + + size_t BlynkFreeRam() + { + return ESP.getFreeHeap(); + } + + void BlynkReset() + { + ESP.restart(); + for(;;) {} + } + + #define _BLYNK_USE_DEFAULT_MILLIS + #define _BLYNK_USE_DEFAULT_DELAY + +#elif defined(ARDUINO_ARCH_SAMD) || defined(ARDUINO_ARCH_SAM) + + #include + + extern "C" char *sbrk(int i); + + size_t BlynkFreeRam() + { + char stack_dummy = 0; + return &stack_dummy - sbrk(0); + } + + void BlynkReset() + { + NVIC_SystemReset(); + for(;;) {} + } + + #define _BLYNK_USE_DEFAULT_MILLIS + #define _BLYNK_USE_DEFAULT_DELAY + +#elif defined (ARDUINO_ARCH_ARC32) + + millis_time_t BlynkMillis() + { + // TODO: Remove workaround for Intel Curie + // https://forum.arduino.cc/index.php?topic=391836.0 + noInterrupts(); + uint64_t t = millis(); + interrupts(); + return t; + } + + #define _BLYNK_USE_DEFAULT_FREE_RAM + #define _BLYNK_USE_DEFAULT_RESET + #define _BLYNK_USE_DEFAULT_DELAY + +#elif defined(ARDUINO) && (defined(__STM32F1__) || defined(__STM32F3__)) + + #include + #include + + void BlynkReset() + { + nvic_sys_reset(); + for(;;) {} + } + + #define _BLYNK_USE_DEFAULT_FREE_RAM + #define _BLYNK_USE_DEFAULT_MILLIS + #define _BLYNK_USE_DEFAULT_DELAY + +#elif defined (PARTICLE) || defined(SPARK) + + #include "application.h" + + void BlynkReset() + { + System.reset(); + for(;;) {} // To make compiler happy + } + + #define _BLYNK_USE_DEFAULT_FREE_RAM + #define _BLYNK_USE_DEFAULT_MILLIS + #define _BLYNK_USE_DEFAULT_DELAY + +#elif defined(__MBED__) + +#if 1 + //KH + #include + #include + + BLYNK_CONSTRUCTOR + static void BlynkSystemInit() + { + } + + void BlynkDelay(millis_time_t ms) + { + delay(ms); + } + + millis_time_t BlynkMillis() + { + return millis(); + } +#else + #include "mbed.h" + + static Timer blynk_millis_timer; + static Ticker blynk_waker; + + static + void blynk_wake() + { + } + + BLYNK_CONSTRUCTOR + static void BlynkSystemInit() + { + blynk_waker.attach(&blynk_wake, 2.0); + blynk_millis_timer.start(); + } + + void BlynkDelay(millis_time_t ms) + { + wait_ms(ms); + } + + millis_time_t BlynkMillis() + { + return blynk_millis_timer.read_ms(); + } +#endif + + #define _BLYNK_USE_DEFAULT_FREE_RAM + #define _BLYNK_USE_DEFAULT_RESET + +#elif defined(LINUX) && defined(RASPBERRY) + + #include + #include + + BLYNK_CONSTRUCTOR + static void BlynkSystemInit() + { + wiringPiSetupGpio(); + } + + void BlynkReset() + { + exit(1); + for(;;) {} // To make compiler happy + } + + #define _BLYNK_USE_DEFAULT_FREE_RAM + #define _BLYNK_USE_DEFAULT_MILLIS + #define _BLYNK_USE_DEFAULT_DELAY + +#elif defined(LINUX) + + #define _POSIX_C_SOURCE 200809L + #include + #include + #include + + static millis_time_t blynk_startup_time = 0; + + BLYNK_CONSTRUCTOR + static void BlynkSystemInit() + { + blynk_startup_time = BlynkMillis(); + } + + void BlynkReset() + { + exit(1); + for(;;) {} // To make compiler happy + } + + void BlynkDelay(millis_time_t ms) + { + usleep(ms * 1000); + } + + millis_time_t BlynkMillis() + { + struct timespec ts; + clock_gettime(CLOCK_MONOTONIC, &ts ); + return ( ts.tv_sec * 1000 + ts.tv_nsec / 1000000L ) - blynk_startup_time; + } + + #define _BLYNK_USE_DEFAULT_FREE_RAM + +#elif defined(TI_CC3220) + + #include + #include + #include + #include + + #include + + #include + #include + #include + + void BlynkReset() + { + sl_Stop(200); + for(;;) { + PRCMHibernateCycleTrigger(); + } + } + + void BlynkDelay(millis_time_t ms) + { + usleep(ms * 1000); + } + + millis_time_t BlynkMillis() + { + return Clock_getTicks(); + } + + #define _BLYNK_USE_DEFAULT_FREE_RAM + +#else + + #if defined(BLYNK_DEBUG_ALL) + #warning "Need to implement board-specific utilities" + #endif + + #define _BLYNK_USE_DEFAULT_FREE_RAM + #define _BLYNK_USE_DEFAULT_RESET + #define _BLYNK_USE_DEFAULT_MILLIS + #define _BLYNK_USE_DEFAULT_DELAY + +#endif + +#ifdef _BLYNK_USE_DEFAULT_DELAY + void BlynkDelay(millis_time_t ms) + { + return delay(ms); + } +#endif + +#ifdef _BLYNK_USE_DEFAULT_MILLIS + millis_time_t BlynkMillis() + { + return millis(); + } +#endif + +#ifdef _BLYNK_USE_DEFAULT_FREE_RAM + size_t BlynkFreeRam() + { + return 0; + } +#endif + +#ifdef _BLYNK_USE_DEFAULT_RESET + void BlynkReset() + { + for(;;) {} // To make compiler happy + } +#endif + +void BlynkFatal() +{ + BlynkDelay(10000L); + BlynkReset(); +} + diff --git a/README.md b/README.md index 0539670..b8f70f4 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,10 @@ * [Installation](#installation) * [Use Arduino Library Manager](#use-arduino-library-manager) * [For Blynk v0.6.1](#for-blynk-v061) - * [For Blynk v1.0.0](#for-blynk-v100) + * [For Blynk v1.0.1](#for-blynk-v101) * [Manual Install](#manual-install) * [For Blynk v0.6.1](#for-blynk-v061-1) - * [For Blynk v1.0.0](#for-blynk-v100-1) + * [For Blynk v1.0.1](#for-blynk-v101-1) * [VS Code & PlatformIO](#vs-code--platformio) * [Packages' Patches](#packages-patches) * [1. For Adafruit nRF52840 and nRF52832 boards](#1-for-adafruit-nRF52840-and-nRF52832-boards) @@ -40,6 +40,7 @@ * [8. For RP2040-based boards using Earle Philhower arduino-pico core](#8-for-rp2040-based-boards-using-earle-philhower-arduino-pico-core) * [8.1. To use BOARD_NAME](#81-to-use-board_name) * [8.2. To avoid compile error relating to microsecondsToClockCycles](#82-to-avoid-compile-error-relating-to-microsecondstoclockcycles) + * [9. For Portenta_H7 boards using Arduino IDE in Linux](#9-for-portenta_h7-boards-using-arduino-ide-in-linux) * [How to use](#how-to-use) * [ 1. Basic usage](#1-basic-usage) * [ 2. EEPROM info](#2-eeprom-info) @@ -172,25 +173,21 @@ This [**EthernetWebServer** library](https://github.com/khoih-prog/EthernetWebSe ## Prerequisites 1. [`Arduino IDE v1.8.16+`](https://github.com/arduino/Arduino). Use [Arduino IDE v1.8.13](https://github.com/arduino/Arduino/releases/tag/1.8.13) for Teensy boards. - - 2. [`Blynk library 0.6.1`](https://github.com/blynkkk/blynk-library/releases/tag/v0.6.1). [![Latest release](https://img.shields.io/github/release/blynkkk/blynk-library.svg)](https://github.com/blynkkk/blynk-library/releases/latest/). Never use the `Blynk beta` versions. - - **Warnings** : Use [`Blynk library 1.0.0+`](https://github.com/blynkkk/blynk-library/releases/tag/v1.0.0) will create **compiler errors** to some boards, such as RP2040-based boards (**Nano_RP1040_Connect, RASPBERRY_PI_PICO, etc**) using [`Arduino mbed_rp2040 core 2.1.0+`](https://github.com/arduino/ArduinoCore-mbed). Please use the [`Blynk library 0.6.1`](https://github.com/blynkkk/blynk-library/releases/tag/v0.6.1) until the issue fixed. - - 3. [`Teensy core 1.54+`](https://www.pjrc.com/teensy/td_download.html) for Teensy (4.x, 3.6, 3.5, 3,2, 3.1, 3.0, LC) boards. + 2. [`Blynk library 1.0.1`](https://github.com/blynkkk/blynk-library/releases/tag/v0.6.1). [![Latest release](https://img.shields.io/github/release/blynkkk/blynk-library.svg)](https://github.com/blynkkk/blynk-library/releases/latest/). Never use the `Blynk beta` versions. + 3. [`Teensy core 1.55+`](https://www.pjrc.com/teensy/td_download.html) for Teensy (4.x, 3.6, 3.5, 3,2, 3.1, 3.0, LC) boards. 4. [`Arduino SAM DUE core 1.6.12+`](https://github.com/arduino/ArduinoCore-sam) for SAM DUE ARM Cortex-M3 boards 5. [`Arduino SAMD core 1.8.11+`](https://www.arduino.cc/en/Guide/ArduinoM0) for SAMD ARM Cortex-M0+ boards. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-samd.svg)](https://github.com/arduino/ArduinoCore-samd/releases/latest) 6. [`Adafruit SAMD core 1.7.5+`](https://www.adafruit.com/) for SAMD ARM Cortex-M0+ and M4 boards (Nano 33 IoT, etc.). [![GitHub release](https://img.shields.io/github/release/adafruit/ArduinoCore-samd.svg)](https://github.com/adafruit/ArduinoCore-samd/releases/latest) - 7. [`Seeeduino SAMD core 1.8.1+`](https://github.com/Seeed-Studio/ArduinoCore-samd) for SAMD21/SAMD51 boards (XIAO M0, Wio Terminal, etc.). [![Latest release](https://img.shields.io/github/release/Seeed-Studio/ArduinoCore-samd.svg)](https://github.com/Seeed-Studio/ArduinoCore-samd/releases/latest/) - 8. [`Arduino Core for STM32 v2.0.0+`](https://github.com/stm32duino/Arduino_Core_STM32) for STM32F/L/H/G/WB/MP1 boards. [![GitHub release](https://img.shields.io/github/release/stm32duino/Arduino_Core_STM32.svg)](https://github.com/stm32duino/Arduino_Core_STM32/releases/latest) + 7. [`Seeeduino SAMD core 1.8.2+`](https://github.com/Seeed-Studio/ArduinoCore-samd) for SAMD21/SAMD51 boards (XIAO M0, Wio Terminal, etc.). [![Latest release](https://img.shields.io/github/release/Seeed-Studio/ArduinoCore-samd.svg)](https://github.com/Seeed-Studio/ArduinoCore-samd/releases/latest/) + 8. [`Arduino Core for STM32 v2.1.0+`](https://github.com/stm32duino/Arduino_Core_STM32) for STM32F/L/H/G/WB/MP1 boards. [![GitHub release](https://img.shields.io/github/release/stm32duino/Arduino_Core_STM32.svg)](https://github.com/stm32duino/Arduino_Core_STM32/releases/latest) - 9. [`Adafruit nRF52 v1.0.0`](https://github.com/adafruit/Adafruit_nRF52_Arduino) for nRF52 boards such as Adafruit NRF52840_FEATHER, NRF52832_FEATHER, NRF52840_FEATHER_SENSE, NRF52840_ITSYBITSY, NRF52840_CIRCUITPLAY, NRF52840_CLUE, NRF52840_METRO, NRF52840_PCA10056, PARTICLE_XENON, **NINA_B302_ublox**, etc. [![GitHub release](https://img.shields.io/github/release/adafruit/Adafruit_nRF52_Arduino.svg)](https://github.com/adafruit/Adafruit_nRF52_Arduino/releases/latest) + 9. [`Adafruit nRF52 v1.1.0`](https://github.com/adafruit/Adafruit_nRF52_Arduino) for nRF52 boards such as Adafruit NRF52840_FEATHER, NRF52832_FEATHER, NRF52840_FEATHER_SENSE, NRF52840_ITSYBITSY, NRF52840_CIRCUITPLAY, NRF52840_CLUE, NRF52840_METRO, NRF52840_PCA10056, PARTICLE_XENON, **NINA_B302_ublox**, etc. [![GitHub release](https://img.shields.io/github/release/adafruit/Adafruit_nRF52_Arduino.svg)](https://github.com/adafruit/Adafruit_nRF52_Arduino/releases/latest) -10. [`Arduino mbed_rp2040 core 2.4.1+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino RP2040-based boards, such as **Arduino Nano RP2040 Connect, RASPBERRY_PI_PICO, etc.**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest) -11. [`Earle Philhower's arduino-pico core v1.9.4+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest) +10. [`Arduino mbed_rp2040 core 2.5.2+`](https://github.com/arduino/ArduinoCore-mbed) for Arduino RP2040-based boards, such as **Arduino Nano RP2040 Connect, RASPBERRY_PI_PICO, etc.**. [![GitHub release](https://img.shields.io/github/release/arduino/ArduinoCore-mbed.svg)](https://github.com/arduino/ArduinoCore-mbed/releases/latest) +11. [`Earle Philhower's arduino-pico core v1.9.5+`](https://github.com/earlephilhower/arduino-pico) for RP2040-based boards such as **RASPBERRY_PI_PICO, ADAFRUIT_FEATHER_RP2040 and GENERIC_RP2040**, etc. [![GitHub release](https://img.shields.io/github/release/earlephilhower/arduino-pico.svg)](https://github.com/earlephilhower/arduino-pico/releases/latest) 12. [`Functional-VLPP library v1.0.2+`](https://github.com/khoih-prog/functional-vlpp) to use server's lambda function. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/Functional-Vlpp.svg?)](https://www.ardu-badge.com/Functional-Vlpp) 13. [`WiFiNINA_Generic library v1.8.13+`](https://github.com/khoih-prog/WiFiNINA_Generic). To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiNINA_Generic.svg?)](https://www.ardu-badge.com/WiFiNINA_Generic) -14. [`WiFiWebServer library v1.4.0+`](https://github.com/khoih-prog/WiFiWebServer) if necessary to use certain WiFi/WiFiNINA features. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiWebServer.svg?)](https://www.ardu-badge.com/WiFiWebServer) +14. [`WiFiWebServer library v1.4.1+`](https://github.com/khoih-prog/WiFiWebServer) if necessary to use certain WiFi/WiFiNINA features. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/WiFiWebServer.svg?)](https://www.ardu-badge.com/WiFiWebServer) 15. [`FlashStorage_SAMD library v1.2.0+`](https://github.com/khoih-prog/FlashStorage_SAMD) for SAMD21 and SAMD51 boards (ZERO, MKR, NANO_33_IOT, M0, M0 Pro, AdaFruit Itsy-Bitsy M4, etc.) if necessary to use certain features. [![GitHub release](https://img.shields.io/github/release/khoih-prog/FlashStorage_SAMD.svg)](https://github.com/khoih-prog/FlashStorage_SAMD/releases/latest) 16. [`FlashStorage_STM32 library v1.1.0+`](https://github.com/khoih-prog/FlashStorage_STM32) for STM32F/L/H/G/WB/MP1 boards. To install. check [![arduino-library-badge](https://www.ardu-badge.com/badge/FlashStorage_STM32.svg?)](https://www.ardu-badge.com/FlashStorage_STM32) 17. [`DueFlashStorage library v1.0.0+`](https://github.com/sebnil/DueFlashStorage) for SAM DUE if necessary to use certain features. To install, check [![arduino-library-badge](https://www.ardu-badge.com/badge/DueFlashStorage.svg?)](https://www.ardu-badge.com/DueFlashStorage). @@ -214,10 +211,10 @@ Then copy 2. [BlynkProtocol.h](LibraryPatches/Blynk-0.6.1/Blynk/BlynkProtocol.h) to folder ~/Arduino/libraries/Blynk/src/Blynk to overwrite the original file `BlynkProtocol.h`. 3. [BlynkDebug.cpp](LibraryPatches/Blynk-0.6.1/utility/BlynkDebug.cpp) to folder ~/Arduino/libraries/Blynk/src/utility to overwrite the original file `BlynkDebug.cpp`. -#### For Blynk v1.0.0 +#### For Blynk v1.0.1 -1. [BlynkDetectDevice.h](LibraryPatches/Blynk-1.0.0/Blynk/BlynkDetectDevice.h) to folder ~/Arduino/libraries/Blynk/src/Blynk to overwrite the original file `BlynkDetectDevice.h`. -2. [BlynkDebug.cpp](LibraryPatches/Blynk-1.0.0/utility/BlynkDebug.cpp) to folder ~/Arduino/libraries/Blynk/src/utility to overwrite the original file `BlynkDebug.cpp`. +1. [BlynkDetectDevice.h](LibraryPatches/Blynk-1.0.1/Blynk/BlynkDetectDevice.h) to folder ~/Arduino/libraries/Blynk/src/Blynk to overwrite the original file `BlynkDetectDevice.h`. +2. [BlynkDebug.cpp](LibraryPatches/Blynk-1.0.1/utility/BlynkDebug.cpp) to folder ~/Arduino/libraries/Blynk/src/utility to overwrite the original file `BlynkDebug.cpp`. --- @@ -237,17 +234,17 @@ Then copy 2. [BlynkProtocol.h](LibraryPatches/Blynk-0.6.1/Blynk/BlynkProtocol.h) to folder ~/Arduino/libraries/Blynk/src/Blynk to overwrite the original file `BlynkProtocol.h`. 3. [BlynkDebug.cpp](LibraryPatches/Blynk-0.6.1/utility/BlynkDebug.cpp) to folder ~/Arduino/libraries/Blynk/src/utility to overwrite the original file `BlynkDebug.cpp`. -#### For Blynk v1.0.0 +#### For Blynk v1.0.1 -1. [BlynkDetectDevice.h](LibraryPatches/Blynk-1.0.0/Blynk/BlynkDetectDevice.h) to folder ~/Arduino/libraries/Blynk/src/Blynk to overwrite the original file `BlynkDetectDevice.h`. -2. [BlynkDebug.cpp](LibraryPatches/Blynk-1.0.0/utility/BlynkDebug.cpp) to folder ~/Arduino/libraries/Blynk/src/utility to overwrite the original file `BlynkDebug.cpp`. +1. [BlynkDetectDevice.h](LibraryPatches/Blynk-1.0.1/Blynk/BlynkDetectDevice.h) to folder ~/Arduino/libraries/Blynk/src/Blynk to overwrite the original file `BlynkDetectDevice.h`. +2. [BlynkDebug.cpp](LibraryPatches/Blynk-1.0.1/utility/BlynkDebug.cpp) to folder ~/Arduino/libraries/Blynk/src/utility to overwrite the original file `BlynkDebug.cpp`. ### VS Code & PlatformIO 1. Install [VS Code](https://code.visualstudio.com/) 2. Install [PlatformIO](https://platformio.org/platformio-ide) -3. Install [**Blynk_WiFiNINA_WM** library](https://platformio.org/lib/show/12374/Blynk_WiFiNINA_WM) or [**Blynk_WiFiNINA_WM** library](https://platformio.org/lib/show/7203/Blynk_WiFiNINA_WM) by using [Library Manager](https://platformio.org/lib/show/12374/Blynk_WiFiNINA_WM/installation). Search for **Blynk_WiFiNINA_WM** in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22) +3. Install [**Blynk_WiFiNINA_WM** library](https://platformio.org/lib/show/12374/Blynk_WiFiNINA_WM) by using [Library Manager](https://platformio.org/lib/show/12374/Blynk_WiFiNINA_WM/installation). Search for **Blynk_WiFiNINA_WM** in [Platform.io Author's Libraries](https://platformio.org/lib/search?query=author:%22Khoi%20Hoang%22) 4. Use included [platformio.ini](platformio/platformio.ini) file from examples to ensure that all dependent libraries will installed automatically. Please visit documentation for the other options and examples at [Project Configuration File](https://docs.platformio.org/page/projectconf.html) @@ -258,22 +255,28 @@ Then copy #### 1. For Adafruit nRF52840 and nRF52832 boards -**To be able to compile, run and automatically detect and display BOARD_NAME on nRF52840/nRF52832 boards**, you have to copy the whole [nRF52 1.0.0](Packages_Patches/adafruit/hardware/nrf52/1.0.0) directory into Adafruit nRF52 directory (~/.arduino15/packages/adafruit/hardware/nrf52/1.0.0). +**To be able to compile, run and automatically detect and display BOARD_NAME on nRF52840/nRF52832 boards**, you have to copy the whole [nRF52 Packages_Patches](Packages_Patches/adafruit/hardware/nrf52/1.1.0) directory into Adafruit nRF52 directory (~/.arduino15/packages/adafruit/hardware/nrf52/1.1.0). -Supposing the Adafruit nRF52 version is 1.0.0. These files must be copied into the directory: -- `~/.arduino15/packages/adafruit/hardware/nrf52/1.0.0/platform.txt` -- `~/.arduino15/packages/adafruit/hardware/nrf52/1.0.0/boards.txt` -- `~/.arduino15/packages/adafruit/hardware/nrf52/1.0.0/variants/NINA_B302_ublox/variant.h` -- `~/.arduino15/packages/adafruit/hardware/nrf52/1.0.0/variants/NINA_B302_ublox/variant.cpp` -- `~/.arduino15/packages/adafruit/hardware/nrf52/1.0.0/variants/NINA_B112_ublox/variant.h` -- `~/.arduino15/packages/adafruit/hardware/nrf52/1.0.0/variants/NINA_B112_ublox/variant.cpp` -- **`~/.arduino15/packages/adafruit/hardware/nrf52/1.0.0/cores/nRF5/Udp.h`** +Supposing the Adafruit nRF52 version is 1.1.0. These files must be copied into the directory: +- `~/.arduino15/packages/adafruit/hardware/nrf52/1.1.0/platform.txt` +- `~/.arduino15/packages/adafruit/hardware/nrf52/1.1.0/boards.txt` +- `~/.arduino15/packages/adafruit/hardware/nrf52/1.1.0/cores/nRF5/Udp.h` +- `~/.arduino15/packages/adafruit/hardware/nrf52/1.1.0/cores/nRF5/Print.h` +- `~/.arduino15/packages/adafruit/hardware/nrf52/1.1.0/cores/nRF5/Print.cpp` +- `~/.arduino15/packages/adafruit/hardware/nrf52/1.1.0/variants/NINA_B302_ublox/variant.h` +- `~/.arduino15/packages/adafruit/hardware/nrf52/1.1.0/variants/NINA_B302_ublox/variant.cpp` +- `~/.arduino15/packages/adafruit/hardware/nrf52/1.1.0/variants/NINA_B112_ublox/variant.h` +- `~/.arduino15/packages/adafruit/hardware/nrf52/1.1.0/variants/NINA_B112_ublox/variant.cpp` +- **`~/.arduino15/packages/adafruit/hardware/nrf52/1.1.0/cores/nRF5/Udp.h`** Whenever a new version is installed, remember to copy these files into the new version directory. For example, new version is x.yy.z These files must be copied into the directory: - `~/.arduino15/packages/adafruit/hardware/nrf52/x.yy.z/platform.txt` - `~/.arduino15/packages/adafruit/hardware/nrf52/x.yy.z/boards.txt` +- `~/.arduino15/packages/adafruit/hardware/nrf52/x.yy.z/cores/nRF5/Udp.h` +- `~/.arduino15/packages/adafruit/hardware/nrf52/x.yy.z/cores/nRF5/Print.h` +- `~/.arduino15/packages/adafruit/hardware/nrf52/x.yy.z/cores/nRF5/Print.cpp` - `~/.arduino15/packages/adafruit/hardware/nrf52/x.yy.z/variants/NINA_B302_ublox/variant.h` - `~/.arduino15/packages/adafruit/hardware/nrf52/x.yy.z/variants/NINA_B302_ublox/variant.cpp` - `~/.arduino15/packages/adafruit/hardware/nrf52/x.yy.z/variants/NINA_B112_ublox/variant.h` @@ -314,7 +317,7 @@ This file must be copied into the directory: #### 4. For Arduino SAMD boards - ***To be able to compile without error and automatically detect and display BOARD_NAME on Arduino SAMD (Nano-33-IoT, etc) boards***, you have to copy the whole [Arduino SAMD cores 1.8.11](Packages_Patches/arduino/hardware/samd/1.8.11) directory into Arduino SAMD directory (~/.arduino15/packages/arduino/hardware/samd/1.8.11). + ***To be able to compile, run and automatically detect and display BOARD_NAME on Arduino SAMD (Nano-33-IoT, etc) boards***, you have to copy the whole [Arduino SAMD Packages_Patches](Packages_Patches/arduino/hardware/samd/1.8.11) directory into Arduino SAMD directory (~/.arduino15/packages/arduino/hardware/samd/1.8.11). #### For core version v1.8.10+ @@ -353,29 +356,39 @@ Whenever the above-mentioned compiler error issue is fixed with the new Arduino #### 5. For Adafruit SAMD boards - ***To be able to automatically detect and display BOARD_NAME on Adafruit SAMD (Itsy-Bitsy M4, etc) boards***, you have to copy the file [Adafruit SAMD platform.txt](Packages_Patches/adafruit/hardware/samd/1.7.5) into Adafruit samd directory (~/.arduino15/packages/adafruit/hardware/samd/1.7.5). + ***To be able to compile, run and automatically detect and display BOARD_NAME on Adafruit SAMD (Itsy-Bitsy M4, etc) boards***, you have to copy the whole [Adafruit SAMD Packages_Patches](Packages_Patches/adafruit/hardware/samd/1.7.5) directory into Adafruit samd directory (~/.arduino15/packages/adafruit/hardware/samd/1.7.5). Supposing the Adafruit SAMD core version is 1.7.5. This file must be copied into the directory: - `~/.arduino15/packages/adafruit/hardware/samd/1.7.5/platform.txt` +- `~/.arduino15/packages/adafruit/hardware/samd/1.7.5/cores/arduino/Print.h` +- `~/.arduino15/packages/adafruit/hardware/samd/1.7.5/cores/arduino/Print.cpp` Whenever a new version is installed, remember to copy this file into the new version directory. For example, new version is x.yy.zz This file must be copied into the directory: - `~/.arduino15/packages/adafruit/hardware/samd/x.yy.zz/platform.txt` +- `~/.arduino15/packages/adafruit/hardware/samd/x.yy.zz/cores/arduino/Print.h` +- `~/.arduino15/packages/adafruit/hardware/samd/x.yy.zz/cores/arduino/Print.cpp` #### 6. For Seeeduino SAMD boards - ***To be able to automatically detect and display BOARD_NAME on Seeeduino SAMD (XIAO M0, Wio Terminal, etc) boards***, you have to copy the file [Seeeduino SAMD platform.txt](Packages_Patches/Seeeduino/hardware/samd/1.8.1) into Adafruit samd directory (~/.arduino15/packages/Seeeduino/hardware/samd/1.8.1). + ***To be able to compile, run and automatically detect and display BOARD_NAME on Seeeduino SAMD (XIAO M0, Wio Terminal, etc) boards***, you have to copy the whole [Seeeduino SAMD Packages_Patches](Packages_Patches/Seeeduino/hardware/samd/1.8.2) directory into Seeeduino samd directory (~/.arduino15/packages/Seeeduino/hardware/samd/1.8.2). -Supposing the Seeeduino SAMD core version is 1.8.1. This file must be copied into the directory: +Supposing the Seeeduino SAMD core version is 1.8.2. This file must be copied into the directory: -- `~/.arduino15/packages/Seeeduino/hardware/samd/1.8.1/platform.txt` +- `~/.arduino15/packages/Seeeduino/hardware/samd/1.8.2/platform.txt` +- `~/.arduino15/packages/Seeeduino/hardware/samd/1.8.2/cores/arduino/Arduino.h` +- `~/.arduino15/packages/Seeeduino/hardware/samd/1.8.2/cores/arduino/Print.h` +- `~/.arduino15/packages/Seeeduino/hardware/samd/1.8.2/cores/arduino/Print.cpp` Whenever a new version is installed, remember to copy this file into the new version directory. For example, new version is x.yy.zz This file must be copied into the directory: - `~/.arduino15/packages/Seeeduino/hardware/samd/x.yy.zz/platform.txt` +- `~/.arduino15/packages/Seeeduino/hardware/samd/x.yy.zz/cores/arduino/Arduino.h` +- `~/.arduino15/packages/Seeeduino/hardware/samd/x.yy.zz/cores/arduino/Print.h` +- `~/.arduino15/packages/Seeeduino/hardware/samd/x.yy.zz/cores/arduino/Print.cpp` #### 7. For STM32 boards @@ -387,12 +400,12 @@ To use LAN8720 on some STM32 boards - **Discovery (DISCO_F746NG)** - **STM32F4 boards (BLACK_F407VE, BLACK_F407VG, BLACK_F407ZE, BLACK_F407ZG, BLACK_F407VE_Mini, DIYMORE_F407VGT, FK407M1)** -you have to copy the files [stm32f4xx_hal_conf_default.h](Packages_Patches/STM32/hardware/stm32/1.9.0/system/STM32F4xx) and [stm32f7xx_hal_conf_default.h](Packages_Patches/STM32/hardware/stm32/1.9.0/system/STM32F7xx) into STM32 stm32 directory (~/.arduino15/packages/STM32/hardware/stm32/1.9.0/system) to overwrite the old files. +you have to copy the files [stm32f4xx_hal_conf_default.h](Packages_Patches/STM32/hardware/stm32/2.1.0/system/STM32F4xx) and [stm32f7xx_hal_conf_default.h](Packages_Patches/STM32/hardware/stm32/2.1.0/system/STM32F7xx) into STM32 stm32 directory (~/.arduino15/packages/STM32/hardware/stm32/2.1.0/system) to overwrite the old files. -Supposing the STM32 stm32 core version is 1.9.0. These files must be copied into the directory: +Supposing the STM32 stm32 core version is 2.1.0. These files must be copied into the directory: -- `~/.arduino15/packages/STM32/hardware/stm32/1.9.0/system/STM32F4xx/stm32f4xx_hal_conf_default.h` for STM32F4. -- `~/.arduino15/packages/STM32/hardware/stm32/1.9.0/system/STM32F7xx/stm32f7xx_hal_conf_default.h` for Nucleo-144 STM32F7. +- `~/.arduino15/packages/STM32/hardware/stm32/2.1.0/system/STM32F4xx/stm32f4xx_hal_conf_default.h` for STM32F4. +- `~/.arduino15/packages/STM32/hardware/stm32/2.1.0/system/STM32F7xx/stm32f7xx_hal_conf_default.h` for Nucleo-144 STM32F7. Whenever a new version is installed, remember to copy this file into the new version directory. For example, new version is x.yy.zz, theses files must be copied into the corresponding directory: @@ -403,18 +416,18 @@ theses files must be copied into the corresponding directory: #### 7.2 For STM32 boards to use Serial1 -**To use Serial1 on some STM32 boards without Serial1 definition (Nucleo-144 NUCLEO_F767ZI, Nucleo-64 NUCLEO_L053R8, etc.) boards**, you have to copy the files [STM32 variant.h](Packages_Patches/STM32/hardware/stm32/1.9.0) into STM32 stm32 directory (~/.arduino15/packages/STM32/hardware/stm32/1.9.0). You have to modify the files corresponding to your boards, this is just an illustration how to do. +**To use Serial1 on some STM32 boards without Serial1 definition (Nucleo-144 NUCLEO_F767ZI, Nucleo-64 NUCLEO_L053R8, etc.) boards**, you have to copy the files [STM32 variant.h](Packages_Patches/STM32/hardware/stm32/2.1.0) into STM32 stm32 directory (~/.arduino15/packages/STM32/hardware/stm32/2.1.0). You have to modify the files corresponding to your boards, this is just an illustration how to do. -Supposing the STM32 stm32 core version is 1.9.0. These files must be copied into the directory: +Supposing the STM32 stm32 core version is 2.1.0. These files must be copied into the directory: -- `~/.arduino15/packages/STM32/hardware/stm32/1.9.0/variants/NUCLEO_F767ZI/variant.h` for Nucleo-144 NUCLEO_F767ZI. -- `~/.arduino15/packages/STM32/hardware/stm32/1.9.0/variants/NUCLEO_L053R8/variant.h` for Nucleo-64 NUCLEO_L053R8. +- `~/.arduino15/packages/STM32/hardware/stm32/2.1.0/variants/STM32F7xx/F765Z(G-I)T_F767Z(G-I)T_F777ZIT/NUCLEO_F767ZI/variant.h` for Nucleo-144 NUCLEO_F767ZI. +- `~/.arduino15/packages/STM32/hardware/stm32/2.1.0/variants/STM32L0xx/L052R(6-8)T_L053R(6-8)T_L063R8T/NUCLEO_L053R8/variant.h` for Nucleo-64 NUCLEO_L053R8. Whenever a new version is installed, remember to copy this file into the new version directory. For example, new version is x.yy.zz, theses files must be copied into the corresponding directory: -- `~/.arduino15/packages/STM32/hardware/stm32/x.yy.zz/variants/NUCLEO_F767ZI/variant.h` -- `~/.arduino15/packages/STM32/hardware/stm32/x.yy.zz/variants/NUCLEO_L053R8/variant.h` +- `~/.arduino15/packages/STM32/hardware/stm32/x.yy.zz/variants/STM32F7xx/F765Z(G-I)T_F767Z(G-I)T_F777ZIT/NUCLEO_F767ZI/variant.h` +- `~/.arduino15/packages/STM32/hardware/stm32/x.yy.zz/variants/STM32L0xx/L052R(6-8)T_L053R(6-8)T_L063R8T/NUCLEO_L053R8/variant.h` #### 8. For RP2040-based boards using [Earle Philhower arduino-pico core](https://github.com/earlephilhower/arduino-pico) @@ -449,6 +462,36 @@ This file must be copied to replace: With core after v1.5.0, this step is not necessary anymore thanks to the PR [Add defs for compatibility #142](https://github.com/earlephilhower/arduino-pico/pull/142). +#### 9. For Portenta_H7 boards using Arduino IDE in Linux + + **To be able to upload firmware to Portenta_H7 using Arduino IDE in Linux (Ubuntu, etc.)**, you have to copy the file [portenta_post_install.sh](Packages_Patches/arduino/hardware/mbed_portenta/2.4.1/portenta_post_install.sh) into mbed_portenta directory (~/.arduino15/packages/arduino/hardware/mbed_portenta/2.4.1/portenta_post_install.sh). + + Then run the following command using `sudo` + +``` +$ cd ~/.arduino15/packages/arduino/hardware/mbed_portenta/2.4.1 +$ chmod 755 portenta_post_install.sh +$ sudo ./portenta_post_install.sh +``` + +This will create the file `/etc/udev/rules.d/49-portenta_h7.rules` as follows: + +``` +# Portenta H7 bootloader mode UDEV rules + +SUBSYSTEMS=="usb", ATTRS{idVendor}=="2341", ATTRS{idProduct}=="035b", GROUP="plugdev", MODE="0666" +``` + +Supposing the ArduinoCore-mbed core version is 2.4.1. Now only one file must be copied into the directory: + +- `~/.arduino15/packages/arduino/hardware/mbed_portenta/2.4.1/portenta_post_install.sh` + +Whenever a new version is installed, remember to copy this files into the new version directory. For example, new version is x.yy.zz + +This file must be copied into the directory: + +- `~/.arduino15/packages/arduino/hardware/mbed_portenta/x.yy.zz/portenta_post_install.sh` + --- --- @@ -1353,8 +1396,8 @@ No Config Data with **LOAD_DEFAULT_CONFIG_DATA = true** => Config Portal loads d ``` Start SAMD_WiFiNINA_WM using WiFiNINA_Shield on SAMD_NANO_33_IOT -Blynk_WiFiNINA_WM v1.1.1 -DoubleResetDetector_Generic v1.4.0 +Blynk_WiFiNINA_WM v1.1.2 +DoubleResetDetector_Generic v1.7.2 Start Blynk_WM [WN] Hostname=SAMD-WiFiNINA Flag read = 0xd0d04321 @@ -1377,8 +1420,8 @@ ClearFlag write = 0xd0d04321 FFFFFFFFF FFFFFFFFFF FFFFF Start SAMD_WiFiNINA_WM using WiFiNINA_Shield on SAMD_NANO_33_IOT -Blynk_WiFiNINA_WM v1.1.1 -DoubleResetDetector_Generic v1.4.0 +Blynk_WiFiNINA_WM v1.1.2 +DoubleResetDetector_Generic v1.7.2 Start Blynk_WM [WN] Hostname=SAMD-WiFiNINA Flag read = 0xffffffff @@ -1412,8 +1455,8 @@ Input valid credentials with **LOAD_DEFAULT_CONFIG_DATA = true** => reboot ``` Start SAMD_WiFiNINA_WM using WiFiNINA_Shield on SAMD_NANO_33_IOT -Blynk_WiFiNINA_WM v1.1.1 -DoubleResetDetector_Generic v1.4.0 +Blynk_WiFiNINA_WM v1.1.2 +DoubleResetDetector_Generic v1.7.2 Start Blynk_WM [WN] Hostname=SAMD-WiFiNINA Flag read = 0xd0d04321 @@ -1458,7 +1501,7 @@ SetFlag write = 0xd0d01234 / _ )/ /_ _____ / /__ / _ / / // / _ \/ '_/ /____/_/\_, /_//_/_/\_\ - /___/ v1.0.0 on NANO_33_IOT + /___/ v1.0.1 on NANO_33_IOT [14493] Connecting to account.duckdns.org:8080 [14661] Ready (ping: 11ms). @@ -1491,7 +1534,7 @@ Simulate Blynk Server lost => auto(re)connect to the available Blynk Server / _ )/ /_ _____ / /__ / _ / / // / _ \/ '_/ /____/_/\_, /_//_/_/\_\ - /___/ v1.0.0 on NANO_33_IOT + /___/ v1.0.1 on NANO_33_IOT [21535] BlynkArduinoClient.connect: Connecting to 192.168.2.112:8080 [21566] Ready (ping: 14ms). @@ -1514,7 +1557,7 @@ BBBBBBBBBB BBBBBBBBBB BBBBBBBBBB BBBBBBBBBB / _ )/ /_ _____ / /__ / _ / / // / _ \/ '_/ /____/_/\_, /_//_/_/\_\ - /___/ v1.0.0 on NANO_33_IOT + /___/ v1.0.1 on NANO_33_IOT [241958] BlynkArduinoClient.connect: Connecting to 192.168.2.112:8080 [244812] Ready (ping: 9ms). @@ -1530,7 +1573,7 @@ BBBBBBBBBB BBBBBBBBBB BBBBBBBBBB BBBBBBBBBB / _ )/ /_ _____ / /__ / _ / / // / _ \/ '_/ /____/_/\_, /_//_/_/\_\ - /___/ v1.0.0 on NANO_33_IOT + /___/ v1.0.1 on NANO_33_IOT [323986] BlynkArduinoClient.connect: Connecting to 192.168.2.112:8080 [338806] @@ -1538,7 +1581,7 @@ BBBBBBBBBB BBBBBBBBBB BBBBBBBBBB BBBBBBBBBB / _ )/ /_ _____ / /__ / _ / / // / _ \/ '_/ /____/_/\_, /_//_/_/\_\ - /___/ v1.0.0 on NANO_33_IOT + /___/ v1.0.1 on NANO_33_IOT [338808] BlynkArduinoClient.connect: Connecting to account.duckdns.org:8080 [338841] Ready (ping: 6ms). @@ -1553,8 +1596,8 @@ BBBBBBBBBB BBBBBBBBBB BBBBBBBBBB BBBBBBBBBB ``` Start SAMD_WiFiNINA_WM using WiFiNINA_Shield on SAMD NANO_33_IOT -Blynk_WiFiNINA_WM v1.1.1 -DoubleResetDetector_Generic v1.4.0 +Blynk_WiFiNINA_WM v1.1.2 +DoubleResetDetector_Generic v1.7.2 doubleResetDetected ClearFlag write = 0xd0d04321 [3358] Double Reset Detected @@ -1638,8 +1681,8 @@ No Config Data with **LOAD_DEFAULT_CONFIG_DATA = true** => Config Portal loads d ``` Start RP2040_WiFiNINA_WM using WiFiNINA_Shield on MBED NANO_RP2040_CONNECT -Blynk_WiFiNINA_WM v1.1.1 -DoubleResetDetector_Generic v1.4.0 +Blynk_WiFiNINA_WM v1.1.2 +DoubleResetDetector_Generic v1.7.2 Start Blynk_WM [WN] Hostname=nRF52-WiFiNINA LittleFS size (KB) = 64 @@ -1685,8 +1728,8 @@ Input valid credentials with **LOAD_DEFAULT_CONFIG_DATA = true** => reboot ``` Start RP2040_WiFiNINA_WM using WiFiNINA_Shield on MBED NANO_RP2040_CONNECT -Blynk_WiFiNINA_WM v1.1.1 -DoubleResetDetector_Generic v1.4.0 +Blynk_WiFiNINA_WM v1.1.2 +DoubleResetDetector_Generic v1.7.2 Start Blynk_WM [WN] Hostname=nRF52-WiFiNINA LittleFS size (KB) = 64 diff --git a/changelog.md b/changelog.md index afbb74c..316aab7 100644 --- a/changelog.md +++ b/changelog.md @@ -12,6 +12,7 @@ ## Table of Contents * [Changelog](#changelog) + * [Releases v1.1.2](#releases-v112) * [Releases v1.1.1](#releases-v111) * [Major Releases v1.1.0](#major-releases-v110) * [Releases v1.0.4](#releases-v104) @@ -26,6 +27,11 @@ ## Changelog +### Releases v1.1.2 + +1. Update `platform.ini` and `library.json` to use original `khoih-prog` instead of `khoih.prog` after PIO fix +2. Update `Packages' Patches` + ### Releases v1.1.1 1. Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards** diff --git a/examples/Mega_WiFiNINA_WM/Mega_WiFiNINA_WM.ino b/examples/Mega_WiFiNINA_WM/Mega_WiFiNINA_WM.ino index 5ef7bb2..5e7db9a 100644 --- a/examples/Mega_WiFiNINA_WM/Mega_WiFiNINA_WM.ino +++ b/examples/Mega_WiFiNINA_WM/Mega_WiFiNINA_WM.ino @@ -9,28 +9,6 @@ Modified from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - - Original Blynk Library author: - @file BlynkSimpleWiFiNINA.h - @author Volodymyr Shymanskyy - @license This project is released under the MIT License (MIT) - @copyright Copyright (c) 2018 Volodymyr Shymanskyy - @date Sep 2018 - @brief - - Version: 1.1.1 - - Version Modified By Date Comments - ------- ----------- ---------- ----------- - 1.0.0 K Hoang 07/04/2020 Initial coding - 1.0.1 K Hoang 09/04/2020 Add support to SAM DUE, Teensy, STM32 - 1.0.2 K Hoang 15/04/2020 Fix bug. Add SAMD51 support. - 1.0.3 K Hoang 05/05/2020 Add nRF52 support, MultiWiFi/Blynk, Configurable Config Portal Title, - Default Config Data and DRD. Update examples. - 1.0.4 K Hoang 13/05/2020 Add support to Arduino UNO WiFi R2 - 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core - Enable scan of WiFi networks for selection in Configuration Portal - 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards *****************************************************************************************************************************/ #include "defines.h" #include "Credentials.h" diff --git a/examples/RP2040_WiFiNINA_WM/RP2040_WiFiNINA_WM.ino b/examples/RP2040_WiFiNINA_WM/RP2040_WiFiNINA_WM.ino index c2111b9..52a64e8 100644 --- a/examples/RP2040_WiFiNINA_WM/RP2040_WiFiNINA_WM.ino +++ b/examples/RP2040_WiFiNINA_WM/RP2040_WiFiNINA_WM.ino @@ -9,29 +9,6 @@ Modified from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - - - Original Blynk Library author: - @file BlynkSimpleWiFiNINA.h - @author Volodymyr Shymanskyy - @license This project is released under the MIT License (MIT) - @copyright Copyright (c) 2018 Volodymyr Shymanskyy - @date Sep 2018 - @brief - - Version: 1.1.1 - - Version Modified By Date Comments - ------- ----------- ---------- ----------- - 1.0.0 K Hoang 07/04/2020 Initial coding - 1.0.1 K Hoang 09/04/2020 Add support to SAM DUE, Teensy, STM32 - 1.0.2 K Hoang 15/04/2020 Fix bug. Add SAMD51 support. - 1.0.3 K Hoang 05/05/2020 Add nRF52 support, MultiWiFi/Blynk, Configurable Config Portal Title, - Default Config Data and DRD. Update examples. - 1.0.4 K Hoang 13/05/2020 Add support to Arduino UNO WiFi R2 - 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core - Enable scan of WiFi networks for selection in Configuration Portal - 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards *****************************************************************************************************************************/ #include "defines.h" #include "Credentials.h" diff --git a/examples/SAMD_WiFiNINA_WM/SAMD_WiFiNINA_WM.ino b/examples/SAMD_WiFiNINA_WM/SAMD_WiFiNINA_WM.ino index 7372f61..d85dfde 100644 --- a/examples/SAMD_WiFiNINA_WM/SAMD_WiFiNINA_WM.ino +++ b/examples/SAMD_WiFiNINA_WM/SAMD_WiFiNINA_WM.ino @@ -9,29 +9,6 @@ Modified from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - - - Original Blynk Library author: - @file BlynkSimpleWiFiNINA.h - @author Volodymyr Shymanskyy - @license This project is released under the MIT License (MIT) - @copyright Copyright (c) 2018 Volodymyr Shymanskyy - @date Sep 2018 - @brief - - Version: 1.1.1 - - Version Modified By Date Comments - ------- ----------- ---------- ----------- - 1.0.0 K Hoang 07/04/2020 Initial coding - 1.0.1 K Hoang 09/04/2020 Add support to SAM DUE, Teensy, STM32 - 1.0.2 K Hoang 15/04/2020 Fix bug. Add SAMD51 support. - 1.0.3 K Hoang 05/05/2020 Add nRF52 support, MultiWiFi/Blynk, Configurable Config Portal Title, - Default Config Data and DRD. Update examples. - 1.0.4 K Hoang 13/05/2020 Add support to Arduino UNO WiFi R2 - 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core - Enable scan of WiFi networks for selection in Configuration Portal - 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards *****************************************************************************************************************************/ #include "defines.h" #include "Credentials.h" diff --git a/examples/SAM_DUE_WiFiNINA_WM/SAM_DUE_WiFiNINA_WM.ino b/examples/SAM_DUE_WiFiNINA_WM/SAM_DUE_WiFiNINA_WM.ino index caa33eb..aeeb5cb 100644 --- a/examples/SAM_DUE_WiFiNINA_WM/SAM_DUE_WiFiNINA_WM.ino +++ b/examples/SAM_DUE_WiFiNINA_WM/SAM_DUE_WiFiNINA_WM.ino @@ -9,29 +9,6 @@ Modified from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - - - Original Blynk Library author: - @file BlynkSimpleWiFiNINA.h - @author Volodymyr Shymanskyy - @license This project is released under the MIT License (MIT) - @copyright Copyright (c) 2018 Volodymyr Shymanskyy - @date Sep 2018 - @brief - - Version: 1.1.1 - - Version Modified By Date Comments - ------- ----------- ---------- ----------- - 1.0.0 K Hoang 07/04/2020 Initial coding - 1.0.1 K Hoang 09/04/2020 Add support to SAM DUE, Teensy, STM32 - 1.0.2 K Hoang 15/04/2020 Fix bug. Add SAMD51 support. - 1.0.3 K Hoang 05/05/2020 Add nRF52 support, MultiWiFi/Blynk, Configurable Config Portal Title, - Default Config Data and DRD. Update examples. - 1.0.4 K Hoang 13/05/2020 Add support to Arduino UNO WiFi R2 - 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core - Enable scan of WiFi networks for selection in Configuration Portal - 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards *****************************************************************************************************************************/ #include "defines.h" #include "Credentials.h" diff --git a/examples/STM32_WiFiNINA_WM/STM32_WiFiNINA_WM.ino b/examples/STM32_WiFiNINA_WM/STM32_WiFiNINA_WM.ino index d6f7192..3f0f908 100644 --- a/examples/STM32_WiFiNINA_WM/STM32_WiFiNINA_WM.ino +++ b/examples/STM32_WiFiNINA_WM/STM32_WiFiNINA_WM.ino @@ -9,29 +9,6 @@ Modified from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - - - Original Blynk Library author: - @file BlynkSimpleWiFiNINA.h - @author Volodymyr Shymanskyy - @license This project is released under the MIT License (MIT) - @copyright Copyright (c) 2018 Volodymyr Shymanskyy - @date Sep 2018 - @brief - - Version: 1.1.1 - - Version Modified By Date Comments - ------- ----------- ---------- ----------- - 1.0.0 K Hoang 07/04/2020 Initial coding - 1.0.1 K Hoang 09/04/2020 Add support to SAM DUE, Teensy, STM32 - 1.0.2 K Hoang 15/04/2020 Fix bug. Add SAMD51 support. - 1.0.3 K Hoang 05/05/2020 Add nRF52 support, MultiWiFi/Blynk, Configurable Config Portal Title, - Default Config Data and DRD. Update examples. - 1.0.4 K Hoang 13/05/2020 Add support to Arduino UNO WiFi R2 - 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core - Enable scan of WiFi networks for selection in Configuration Portal - 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards *****************************************************************************************************************************/ #include "defines.h" #include "Credentials.h" diff --git a/examples/Teensy_WiFiNINA_WM/Teensy_WiFiNINA_WM.ino b/examples/Teensy_WiFiNINA_WM/Teensy_WiFiNINA_WM.ino index 6915f03..83229e8 100644 --- a/examples/Teensy_WiFiNINA_WM/Teensy_WiFiNINA_WM.ino +++ b/examples/Teensy_WiFiNINA_WM/Teensy_WiFiNINA_WM.ino @@ -9,28 +9,6 @@ Modified from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - - Original Blynk Library author: - @file BlynkSimpleWiFiNINA.h - @author Volodymyr Shymanskyy - @license This project is released under the MIT License (MIT) - @copyright Copyright (c) 2018 Volodymyr Shymanskyy - @date Sep 2018 - @brief - - Version: 1.1.1 - - Version Modified By Date Comments - ------- ----------- ---------- ----------- - 1.0.0 K Hoang 07/04/2020 Initial coding - 1.0.1 K Hoang 09/04/2020 Add support to SAM DUE, Teensy, STM32 - 1.0.2 K Hoang 15/04/2020 Fix bug. Add SAMD51 support. - 1.0.3 K Hoang 05/05/2020 Add nRF52 support, MultiWiFi/Blynk, Configurable Config Portal Title, - Default Config Data and DRD. Update examples. - 1.0.4 K Hoang 13/05/2020 Add support to Arduino UNO WiFi R2 - 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core - Enable scan of WiFi networks for selection in Configuration Portal - 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards *****************************************************************************************************************************/ #include "defines.h" #include "Credentials.h" diff --git a/examples/UNO_WiFiNINA/UNO_WiFiNINA.ino b/examples/UNO_WiFiNINA/UNO_WiFiNINA.ino index ffd6548..79aa8c8 100644 --- a/examples/UNO_WiFiNINA/UNO_WiFiNINA.ino +++ b/examples/UNO_WiFiNINA/UNO_WiFiNINA.ino @@ -11,28 +11,6 @@ Modified from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - - Original Blynk Library author: - @file BlynkSimpleWiFiNINA.h - @author Volodymyr Shymanskyy - @license This project is released under the MIT License (MIT) - @copyright Copyright (c) 2018 Volodymyr Shymanskyy - @date Sep 2018 - @brief - - Version: 1.1.1 - - Version Modified By Date Comments - ------- ----------- ---------- ----------- - 1.0.0 K Hoang 07/04/2020 Initial coding - 1.0.1 K Hoang 09/04/2020 Add support to SAM DUE, Teensy, STM32 - 1.0.2 K Hoang 15/04/2020 Fix bug. Add SAMD51 support. - 1.0.3 K Hoang 05/05/2020 Add nRF52 support, MultiWiFi/Blynk, Configurable Config Portal Title, - Default Config Data and DRD. Update examples. - 1.0.4 K Hoang 13/05/2020 Add support to Arduino UNO WiFi R2 - 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core - Enable scan of WiFi networks for selection in Configuration Portal - 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards *****************************************************************************************************************************/ // To install WiFiNINA_Generic library (https://github.com/khoih-prog/WiFiNINA_Generic) // and Blynk_WiFiNINA_WM (https://github.com/khoih-prog/Blynk_WiFiNINA_WM) diff --git a/examples/nRF52_WiFiNINA_WM/nRF52_WiFiNINA_WM.ino b/examples/nRF52_WiFiNINA_WM/nRF52_WiFiNINA_WM.ino index e29f822..d01985b 100644 --- a/examples/nRF52_WiFiNINA_WM/nRF52_WiFiNINA_WM.ino +++ b/examples/nRF52_WiFiNINA_WM/nRF52_WiFiNINA_WM.ino @@ -9,29 +9,6 @@ Modified from Blynk library v0.6.1 https://github.com/blynkkk/blynk-library/releases Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - - - Original Blynk Library author: - @file BlynkSimpleWiFiNINA.h - @author Volodymyr Shymanskyy - @license This project is released under the MIT License (MIT) - @copyright Copyright (c) 2018 Volodymyr Shymanskyy - @date Sep 2018 - @brief - - Version: 1.1.1 - - Version Modified By Date Comments - ------- ----------- ---------- ----------- - 1.0.0 K Hoang 07/04/2020 Initial coding - 1.0.1 K Hoang 09/04/2020 Add support to SAM DUE, Teensy, STM32 - 1.0.2 K Hoang 15/04/2020 Fix bug. Add SAMD51 support. - 1.0.3 K Hoang 05/05/2020 Add nRF52 support, MultiWiFi/Blynk, Configurable Config Portal Title, - Default Config Data and DRD. Update examples. - 1.0.4 K Hoang 13/05/2020 Add support to Arduino UNO WiFi R2 - 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core - Enable scan of WiFi networks for selection in Configuration Portal - 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards *****************************************************************************************************************************/ #include "defines.h" #include "Credentials.h" diff --git a/library.json b/library.json index ca13d65..2e4d331 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "Blynk_WiFiNINA_WM", - "version": "1.1.1", + "version": "1.1.2", "description": "Simple WiFi Manager for MultiBlynk for Teensy, SAM DUE, SAMD21, SAMD51, nRF52, ESP32, ESP8266, RP2040-based, etc. boards, with or without SSL, configuration data saved in nRF52/RP2040 LittleFS, EEPROM, DueFlashStorage or SAMD/STM32 FlashStorage. Library for configuring/auto(re)connecting WiFiNINA shields to MultiWiFi-MultiBlynk at runtime. New powerful-yet-simple-to-use feature to enable adding dynamic custom parameters from sketch and input using the same Config Portal. Config Portal will be auto-adjusted to match the number of dynamic parameters. DoubleDetectDetector is used to force Config Portal opening even if the Credentials are still valid. Build a smartphone app for your project in minutes. Blynk allows creating IoT solutions easily. Works with many boards like Mega, UNO WiFi Rev2, SAM DUE, SAMD, nRF52, Teensy, RP2040", "keywords": "blynk, control, device, communication, wifi, multi-wifi, multi-blynk, wifinina, samd, nrf52, stm32, rpi-pico, rp2040, nano-rp2040-connect, nano-33-iot, sam-due, eeprom, littlefs, flash-storage-stm32, flash-storage-samd", "authors": @@ -27,17 +27,17 @@ { "owner": "blynkkk", "name": "Blynk", - "version": "^0.6.1", + "version": "^1.0.1", "platforms": ["*"] }, { "owner": "khoih-prog", "name": "WiFiWebServer", - "version": "^1.4.0", + "version": "^1.4.1", "platforms": ["*"] }, { - "owner": "khoih.prog", + "owner": "khoih-prog", "name": "DoubleResetDetector_Generic", "version": "^1.7.2", "platforms": ["*"] @@ -49,19 +49,19 @@ "platforms": ["*"] }, { - "owner": "khoih.prog", + "owner": "khoih-prog", "name": "WiFiNINA_Generic", "version": "^1.8.13", "platforms": ["*"] }, { - "owner": "khoih.prog", + "owner": "khoih-prog", "name": "FlashStorage_SAMD", "version": "^1.2.0", "platforms": ["*"] }, { - "owner": "khoih.prog", + "owner": "khoih-prog", "name": "FlashStorage_STM32", "version": "^1.1.0", "platforms": ["*"] diff --git a/library.properties b/library.properties index 9a67786..e7b5e5c 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Blynk_WiFiNINA_WM -version=1.1.1 +version=1.1.2 author=Khoi Hoang license=MIT maintainer=Khoi Hoang diff --git a/platformio/platformio.ini b/platformio/platformio.ini index 76d9570..1d301eb 100644 --- a/platformio/platformio.ini +++ b/platformio/platformio.ini @@ -38,14 +38,14 @@ lib_compat_mode = strict lib_deps = ; PlatformIO 4.x - Blynk@>=0.6.1 - WiFiWebServer@>=1.4.0 + Blynk@>=1.0.1 + WiFiWebServer@>=1.4.1 WiFiNINA_Generic@>=1.8.13 DoubleResetDetector_Generic@>=1.7.2 Functional-VLPP@>=1.0.2 ; PlatformIO 5.x -; blynkkk/Blynk@>=0.6.1 -; khoih-prog/WiFiWebServer@>=1.4.0 +; blynkkk/Blynk@>=1.0.1 +; khoih-prog/WiFiWebServer@>=1.4.1 ; khoih-prog/WiFiNINA_Generic@>=1.8.13 ; khoih-prog/DoubleResetDetector_Generic@>=1.7.2 ; khoih-prog/Functional-VLPP@>=1.0.2 diff --git a/src/BlynkSimpleWiFiNINA_AVR.h b/src/BlynkSimpleWiFiNINA_AVR.h index 0d97d60..ed889a4 100644 --- a/src/BlynkSimpleWiFiNINA_AVR.h +++ b/src/BlynkSimpleWiFiNINA_AVR.h @@ -10,7 +10,6 @@ Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - Original Blynk Library author: @file BlynkSimpleWiFiNINA.h @author Volodymyr Shymanskyy @@ -19,7 +18,7 @@ @date Sep 2018 @brief - Version: 1.1.1 + Version: 1.1.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -31,7 +30,8 @@ 1.0.4 K Hoang 13/05/2020 Add support to Arduino UNO WiFi R2 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core Enable scan of WiFi networks for selection in Configuration Portal - 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.2 K Hoang 09/06/2020 Update `platform.ini` and `library.json` *****************************************************************************************************************************/ diff --git a/src/BlynkSimpleWiFiNINA_AVR_WM.h b/src/BlynkSimpleWiFiNINA_AVR_WM.h index 9740094..bfa9eef 100644 --- a/src/BlynkSimpleWiFiNINA_AVR_WM.h +++ b/src/BlynkSimpleWiFiNINA_AVR_WM.h @@ -10,7 +10,6 @@ Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - Original Blynk Library author: @file BlynkSimpleWiFiNINA.h @author Volodymyr Shymanskyy @@ -19,7 +18,7 @@ @date Sep 2018 @brief - Version: 1.1.1 + Version: 1.1.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -32,6 +31,7 @@ 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core Enable scan of WiFi networks for selection in Configuration Portal 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.2 K Hoang 09/06/2020 Update `platform.ini` and `library.json` *****************************************************************************************************************************/ @@ -42,7 +42,7 @@ #error This code is intended to run only on the Arduino Mega 1280/2560/ADK boards ! Please check your Tools->Board setting. #endif -#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.1" +#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.2" #ifndef BLYNK_INFO_CONNECTION #define BLYNK_INFO_CONNECTION "WiFiNINA" diff --git a/src/BlynkSimpleWiFiNINA_AVR_WM_Small.h b/src/BlynkSimpleWiFiNINA_AVR_WM_Small.h index ab5f061..d2f72ad 100644 --- a/src/BlynkSimpleWiFiNINA_AVR_WM_Small.h +++ b/src/BlynkSimpleWiFiNINA_AVR_WM_Small.h @@ -10,7 +10,6 @@ Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - Original Blynk Library author: @file BlynkSimpleWiFiNINA.h @author Volodymyr Shymanskyy @@ -19,7 +18,7 @@ @date Sep 2018 @brief - Version: 1.1.1 + Version: 1.1.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -32,6 +31,7 @@ 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core Enable scan of WiFi networks for selection in Configuration Portal 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.2 K Hoang 09/06/2020 Update `platform.ini` and `library.json` *****************************************************************************************************************************/ @@ -42,7 +42,7 @@ #error This code is intended to run only on the Arduino Mega 1280/2560/ADK boards ! Please check your Tools->Board setting. #endif -#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.1" +#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.2" #ifndef BLYNK_INFO_CONNECTION #define BLYNK_INFO_CONNECTION "WiFiNINA" diff --git a/src/BlynkSimpleWiFiNINA_DUE.h b/src/BlynkSimpleWiFiNINA_DUE.h index f6e30ad..ac3e313 100644 --- a/src/BlynkSimpleWiFiNINA_DUE.h +++ b/src/BlynkSimpleWiFiNINA_DUE.h @@ -10,7 +10,6 @@ Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - Original Blynk Library author: @file BlynkSimpleWiFiNINA.h @author Volodymyr Shymanskyy @@ -19,7 +18,7 @@ @date Sep 2018 @brief - Version: 1.1.1 + Version: 1.1.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -32,6 +31,7 @@ 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core Enable scan of WiFi networks for selection in Configuration Portal 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.2 K Hoang 09/06/2020 Update `platform.ini` and `library.json` *****************************************************************************************************************************/ @@ -47,7 +47,7 @@ #error This code is intended to run on the SAM DUE platform! Please check your Tools->Board setting. #endif -#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.1" +#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.2" #ifndef BLYNK_INFO_CONNECTION #define BLYNK_INFO_CONNECTION "WiFiNINA" diff --git a/src/BlynkSimpleWiFiNINA_DUE_WM.h b/src/BlynkSimpleWiFiNINA_DUE_WM.h index 21ae281..93da4cc 100644 --- a/src/BlynkSimpleWiFiNINA_DUE_WM.h +++ b/src/BlynkSimpleWiFiNINA_DUE_WM.h @@ -10,7 +10,6 @@ Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - Original Blynk Library author: @file BlynkSimpleWiFiNINA.h @author Volodymyr Shymanskyy @@ -19,7 +18,7 @@ @date Sep 2018 @brief - Version: 1.1.1 + Version: 1.1.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -32,6 +31,7 @@ 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core Enable scan of WiFi networks for selection in Configuration Portal 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.2 K Hoang 09/06/2020 Update `platform.ini` and `library.json` *****************************************************************************************************************************/ @@ -47,7 +47,7 @@ #error This code is intended to run on the SAM DUE platform! Please check your Tools->Board setting. #endif -#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.1" +#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.2" ////////////////////////////////////////////// // From v1.1.0 to display correct BLYNK_INFO_DEVICE diff --git a/src/BlynkSimpleWiFiNINA_RP2040.h b/src/BlynkSimpleWiFiNINA_RP2040.h index 5388d53..d63aa1a 100644 --- a/src/BlynkSimpleWiFiNINA_RP2040.h +++ b/src/BlynkSimpleWiFiNINA_RP2040.h @@ -10,7 +10,6 @@ Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - Original Blynk Library author: @file BlynkSimpleWiFiNINA.h @author Volodymyr Shymanskyy @@ -19,7 +18,7 @@ @date Sep 2018 @brief - Version: 1.1.1 + Version: 1.1.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -32,6 +31,7 @@ 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core Enable scan of WiFi networks for selection in Configuration Portal 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.2 K Hoang 09/06/2020 Update `platform.ini` and `library.json` *****************************************************************************************************************************/ @@ -48,7 +48,7 @@ #error This code is intended to run only on the RP2040-based boards ! Please check your Tools->Board setting. #endif -#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.1" +#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.2" ////////////////////////////////////////////// // From v1.1.0 to display correct BLYNK_INFO_DEVICE diff --git a/src/BlynkSimpleWiFiNINA_RP2040_WM.h b/src/BlynkSimpleWiFiNINA_RP2040_WM.h index a480cc1..dee52c4 100644 --- a/src/BlynkSimpleWiFiNINA_RP2040_WM.h +++ b/src/BlynkSimpleWiFiNINA_RP2040_WM.h @@ -10,7 +10,6 @@ Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - Original Blynk Library author: @file BlynkSimpleWiFiNINA.h @author Volodymyr Shymanskyy @@ -19,7 +18,7 @@ @date Sep 2018 @brief - Version: 1.1.1 + Version: 1.1.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -32,6 +31,7 @@ 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core Enable scan of WiFi networks for selection in Configuration Portal 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.2 K Hoang 09/06/2020 Update `platform.ini` and `library.json` *****************************************************************************************************************************/ @@ -48,7 +48,7 @@ #error This code is intended to run only on the RP2040-based boards ! Please check your Tools->Board setting. #endif -#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.1" +#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.2" ////////////////////////////////////////////// // From v1.1.0 to display correct BLYNK_INFO_DEVICE diff --git a/src/BlynkSimpleWiFiNINA_SAMD.h b/src/BlynkSimpleWiFiNINA_SAMD.h index ec2982e..66a392f 100644 --- a/src/BlynkSimpleWiFiNINA_SAMD.h +++ b/src/BlynkSimpleWiFiNINA_SAMD.h @@ -10,7 +10,6 @@ Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - Original Blynk Library author: @file BlynkSimpleWiFiNINA.h @author Volodymyr Shymanskyy @@ -19,7 +18,7 @@ @date Sep 2018 @brief - Version: 1.1.1 + Version: 1.1.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -32,6 +31,7 @@ 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core Enable scan of WiFi networks for selection in Configuration Portal 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.2 K Hoang 09/06/2020 Update `platform.ini` and `library.json` *****************************************************************************************************************************/ @@ -51,7 +51,7 @@ #error This code is intended to run on the SAMD platform! Please check your Tools->Board setting. #endif -#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.1" +#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.2" #ifndef BLYNK_INFO_CONNECTION #define BLYNK_INFO_CONNECTION "WiFiNINA" diff --git a/src/BlynkSimpleWiFiNINA_SAMD_WM.h b/src/BlynkSimpleWiFiNINA_SAMD_WM.h index cb679d5..b3d14f2 100644 --- a/src/BlynkSimpleWiFiNINA_SAMD_WM.h +++ b/src/BlynkSimpleWiFiNINA_SAMD_WM.h @@ -10,7 +10,6 @@ Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - Original Blynk Library author: @file BlynkSimpleWiFiNINA.h @author Volodymyr Shymanskyy @@ -19,7 +18,7 @@ @date Sep 2018 @brief - Version: 1.1.1 + Version: 1.1.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -32,6 +31,7 @@ 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core Enable scan of WiFi networks for selection in Configuration Portal 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.2 K Hoang 09/06/2020 Update `platform.ini` and `library.json` *****************************************************************************************************************************/ #ifndef BlynkSimpleWiFiNINA_SAMD_WM_h @@ -50,7 +50,7 @@ #error This code is intended to run on the SAMD platform! Please check your Tools->Board setting. #endif -#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.1" +#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.2" ////////////////////////////////////////////// // From v1.1.0 to display correct BLYNK_INFO_DEVICE diff --git a/src/BlynkSimpleWiFiNINA_STM32.h b/src/BlynkSimpleWiFiNINA_STM32.h index 9c06950..adb019a 100644 --- a/src/BlynkSimpleWiFiNINA_STM32.h +++ b/src/BlynkSimpleWiFiNINA_STM32.h @@ -10,7 +10,6 @@ Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - Original Blynk Library author: @file BlynkSimpleWiFiNINA.h @author Volodymyr Shymanskyy @@ -19,7 +18,7 @@ @date Sep 2018 @brief - Version: 1.1.1 + Version: 1.1.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -32,6 +31,7 @@ 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core Enable scan of WiFi networks for selection in Configuration Portal 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.2 K Hoang 09/06/2020 Update `platform.ini` and `library.json` *****************************************************************************************************************************/ @@ -49,7 +49,7 @@ #error This code is intended to run on the STM32 platform! Please check your Tools->Board setting. #endif -#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.1" +#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.2" #ifndef BLYNK_INFO_CONNECTION #define BLYNK_INFO_CONNECTION "WiFiNINA" diff --git a/src/BlynkSimpleWiFiNINA_STM32_WM.h b/src/BlynkSimpleWiFiNINA_STM32_WM.h index 0efe90d..509a3ea 100644 --- a/src/BlynkSimpleWiFiNINA_STM32_WM.h +++ b/src/BlynkSimpleWiFiNINA_STM32_WM.h @@ -10,7 +10,6 @@ Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - Original Blynk Library author: @file BlynkSimpleWiFiNINA.h @author Volodymyr Shymanskyy @@ -19,7 +18,7 @@ @date Sep 2018 @brief - Version: 1.1.1 + Version: 1.1.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -32,6 +31,7 @@ 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core Enable scan of WiFi networks for selection in Configuration Portal 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.2 K Hoang 09/06/2020 Update `platform.ini` and `library.json` *****************************************************************************************************************************/ #ifndef BlynkSimpleWiFiNINA_STM32_WM_h @@ -48,7 +48,7 @@ #error This code is intended to run on the STM32 platform! Please check your Tools->Board setting. #endif -#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.1" +#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.2" ////////////////////////////////////////////// // From v1.1.0 to display correct BLYNK_INFO_DEVICE diff --git a/src/BlynkSimpleWiFiNINA_Teensy.h b/src/BlynkSimpleWiFiNINA_Teensy.h index 910ad6f..1629efe 100644 --- a/src/BlynkSimpleWiFiNINA_Teensy.h +++ b/src/BlynkSimpleWiFiNINA_Teensy.h @@ -10,7 +10,6 @@ Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - Original Blynk Library author: @file BlynkSimpleWiFiNINA.h @author Volodymyr Shymanskyy @@ -19,7 +18,7 @@ @date Sep 2018 @brief - Version: 1.1.1 + Version: 1.1.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -31,7 +30,8 @@ 1.0.4 K Hoang 13/05/2020 Add support to Arduino UNO WiFi R2 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core Enable scan of WiFi networks for selection in Configuration Portal - 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards *****************************************************************************************************************************/ + 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.2 K Hoang 09/06/2020 Update `platform.ini` and `library.json` *****************************************************************************************************************************/ #ifndef BlynkSimpleWiFiNINA_Teensy_h @@ -50,7 +50,7 @@ #error Teensy 2.0++ and Teensy 2.0 not supported yet #endif -#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.1" +#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.2" #ifndef BLYNK_INFO_CONNECTION #define BLYNK_INFO_CONNECTION "WiFiNINA" diff --git a/src/BlynkSimpleWiFiNINA_Teensy_WM.h b/src/BlynkSimpleWiFiNINA_Teensy_WM.h index 61246be..ac21038 100644 --- a/src/BlynkSimpleWiFiNINA_Teensy_WM.h +++ b/src/BlynkSimpleWiFiNINA_Teensy_WM.h @@ -10,7 +10,6 @@ Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - Original Blynk Library author: @file BlynkSimpleWiFiNINA.h @author Volodymyr Shymanskyy @@ -19,7 +18,7 @@ @date Sep 2018 @brief - Version: 1.1.1 + Version: 1.1.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -32,6 +31,7 @@ 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core Enable scan of WiFi networks for selection in Configuration Portal 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.2 K Hoang 09/06/2020 Update `platform.ini` and `library.json` *****************************************************************************************************************************/ @@ -51,7 +51,7 @@ #error Teensy 2.0++ and Teensy 2.0 not supported yet #endif -#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.1" +#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.2" ////////////////////////////////////////////// // From v1.1.0 to display correct BLYNK_INFO_DEVICE diff --git a/src/BlynkSimpleWiFiNINA_UNO_WiFi.h b/src/BlynkSimpleWiFiNINA_UNO_WiFi.h index 397c20b..4ec76a2 100644 --- a/src/BlynkSimpleWiFiNINA_UNO_WiFi.h +++ b/src/BlynkSimpleWiFiNINA_UNO_WiFi.h @@ -10,7 +10,6 @@ Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - Original Blynk Library author: @file BlynkSimpleWiFiNINA.h @author Volodymyr Shymanskyy @@ -19,7 +18,7 @@ @date Sep 2018 @brief - Version: 1.1.1 + Version: 1.1.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -32,6 +31,7 @@ 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core Enable scan of WiFi networks for selection in Configuration Portal 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.2 K Hoang 09/06/2020 Update `platform.ini` and `library.json` *****************************************************************************************************************************/ @@ -42,7 +42,7 @@ #error This code is intended to run on the Arduino UNO WiFi R2 platform! Please check your Tools->Board setting. #endif -#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.1" +#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.2" #ifndef BLYNK_INFO_CONNECTION #define BLYNK_INFO_CONNECTION "WiFiNINA" diff --git a/src/BlynkSimpleWiFiNINA_UNO_WiFi_WM_Small.h b/src/BlynkSimpleWiFiNINA_UNO_WiFi_WM_Small.h index 72e348f..6cda99e 100644 --- a/src/BlynkSimpleWiFiNINA_UNO_WiFi_WM_Small.h +++ b/src/BlynkSimpleWiFiNINA_UNO_WiFi_WM_Small.h @@ -10,7 +10,6 @@ Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - Original Blynk Library author: @file BlynkSimpleWiFiNINA.h @author Volodymyr Shymanskyy @@ -19,7 +18,7 @@ @date Sep 2018 @brief - Version: 1.1.1 + Version: 1.1.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -31,7 +30,8 @@ 1.0.4 K Hoang 13/05/2020 Add support to Arduino UNO WiFi R2 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core Enable scan of WiFi networks for selection in Configuration Portal - 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.2 K Hoang 09/06/2020 Update `platform.ini` and `library.json` *****************************************************************************************************************************/ @@ -42,7 +42,7 @@ #error This code is intended to run on the Arduino UNO WiFi R2 platform! Please check your Tools->Board setting. #endif -#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.1" +#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.2" #ifndef BLYNK_INFO_CONNECTION #define BLYNK_INFO_CONNECTION "WiFiNINA" diff --git a/src/BlynkSimpleWiFiNINA_nRF52.h b/src/BlynkSimpleWiFiNINA_nRF52.h index 6c9a03a..71b8a27 100644 --- a/src/BlynkSimpleWiFiNINA_nRF52.h +++ b/src/BlynkSimpleWiFiNINA_nRF52.h @@ -10,7 +10,6 @@ Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - Original Blynk Library author: @file BlynkSimpleWiFiNINA.h @author Volodymyr Shymanskyy @@ -19,7 +18,7 @@ @date Sep 2018 @brief - Version: 1.1.1 + Version: 1.1.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -32,6 +31,7 @@ 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core Enable scan of WiFi networks for selection in Configuration Portal 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.2 K Hoang 09/06/2020 Update `platform.ini` and `library.json` *****************************************************************************************************************************/ @@ -49,7 +49,7 @@ #error This code is intended to run on the nRF52 platform! Please check your Tools->Board setting. #endif -#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.1" +#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.2" #ifndef BLYNK_INFO_CONNECTION #define BLYNK_INFO_CONNECTION "WiFiNINA" diff --git a/src/BlynkSimpleWiFiNINA_nRF52_WM.h b/src/BlynkSimpleWiFiNINA_nRF52_WM.h index 99ca36d..ef9c4cc 100644 --- a/src/BlynkSimpleWiFiNINA_nRF52_WM.h +++ b/src/BlynkSimpleWiFiNINA_nRF52_WM.h @@ -10,7 +10,6 @@ Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - Original Blynk Library author: @file BlynkSimpleWiFiNINA.h @author Volodymyr Shymanskyy @@ -19,7 +18,7 @@ @date Sep 2018 @brief - Version: 1.1.1 + Version: 1.1.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -32,6 +31,7 @@ 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core Enable scan of WiFi networks for selection in Configuration Portal 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.2 K Hoang 09/06/2020 Update `platform.ini` and `library.json` *****************************************************************************************************************************/ @@ -49,7 +49,7 @@ #error This code is intended to run on the nRF52 platform! Please check your Tools->Board setting. #endif -#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.1" +#define BLYNK_WIFININA_WM_VERSION "Blynk_WiFiNINA_WM v1.1.2" ////////////////////////////////////////////// // From v1.1.0 to display correct BLYNK_INFO_DEVICE diff --git a/src/BlynkWiFiNINA_WM_Debug.h b/src/BlynkWiFiNINA_WM_Debug.h index fe532a1..66906ca 100644 --- a/src/BlynkWiFiNINA_WM_Debug.h +++ b/src/BlynkWiFiNINA_WM_Debug.h @@ -10,7 +10,6 @@ Built by Khoi Hoang https://github.com/khoih-prog/Blynk_WiFiNINA_WM Licensed under MIT license - Original Blynk Library author: @file BlynkSimpleWiFiNINA.h @author Volodymyr Shymanskyy @@ -19,7 +18,7 @@ @date Sep 2018 @brief - Version: 1.1.1 + Version: 1.1.2 Version Modified By Date Comments ------- ----------- ---------- ----------- @@ -32,6 +31,7 @@ 1.1.0 K Hoang 28/05/2021 Add support to Nano_RP2040_Connect, RASPBERRY_PI_PICO using Arduino mbed or pico core Enable scan of WiFi networks for selection in Configuration Portal 1.1.1 K Hoang 09/06/2020 Add Blynk library Patches for **MBED RP2040-based (Nano_RP2040_Connect, etc.) boards + 1.1.2 K Hoang 09/06/2020 Update `platform.ini` and `library.json` **********************************************************************************************************************************/ #ifndef WiFiManager_NINA_Lite_Debug_h