From 36b88bb9dac3b3454d64f32a713b73f1598f77e1 Mon Sep 17 00:00:00 2001 From: brentru Date: Mon, 14 Jul 2025 16:02:21 -0400 Subject: [PATCH 1/2] Update SSL fingerprint --- library.properties | 2 +- src/AdafruitIO_Definitions.h | 30 +++++++++++++++++++++--------- 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/library.properties b/library.properties index e82661b..4e5864c 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Adafruit IO Arduino -version=4.3.1 +version=4.3.2 author=Adafruit maintainer=Adafruit sentence=Arduino library to access Adafruit IO. diff --git a/src/AdafruitIO_Definitions.h b/src/AdafruitIO_Definitions.h index edf9afa..34762d6 100644 --- a/src/AdafruitIO_Definitions.h +++ b/src/AdafruitIO_Definitions.h @@ -79,27 +79,39 @@ class AdafruitIOGroupCallback { // Define actual debug output functions when necessary. #ifdef AIO_DEBUG #define AIO_DEBUG_PRINT(...) \ - { AIO_PRINTER.print(__VA_ARGS__); } ///< Prints debug output. + { \ + AIO_PRINTER.print(__VA_ARGS__); \ + } ///< Prints debug output. #define AIO_DEBUG_PRINTLN(...) \ - { AIO_PRINTER.println(__VA_ARGS__); } ///< Prints line from debug output. + { \ + AIO_PRINTER.println(__VA_ARGS__); \ + } ///< Prints line from debug output. #else #define AIO_DEBUG_PRINT(...) \ - {} ///< Prints debug output + { \ + } ///< Prints debug output #define AIO_DEBUG_PRINTLN(...) \ - {} ///< Prints line from debug output. + { \ + } ///< Prints line from debug output. #endif // Define actual error output functions when necessary. #ifdef AIO_ERROR #define AIO_ERROR_PRINT(...) \ - { AIO_PRINTER.print(__VA_ARGS__); } ///< Prints error output + { \ + AIO_PRINTER.print(__VA_ARGS__); \ + } ///< Prints error output #define AIO_ERROR_PRINTLN(...) \ - { AIO_PRINTER.println(__VA_ARGS__); } ///< Prints line from error output + { \ + AIO_PRINTER.println(__VA_ARGS__); \ + } ///< Prints line from error output #else #define AIO_ERROR_PRINT(...) \ - {} ///< Prints error output. + { \ + } ///< Prints error output. #define AIO_ERROR_PRINTLN(...) \ - {} ///< Prints line from error output. + { \ + } ///< Prints line from error output. #endif #define AIO_PING_INTERVAL 60000 ///< Adafruit IO Ping Interval, in milliseconds @@ -119,7 +131,7 @@ class AdafruitIOGroupCallback { // echo | openssl s_client -connect io.adafruit.com:443 | openssl x509 // -fingerprint -noout #define AIO_SSL_FINGERPRINT \ - "4E C1 52 73 24 A8 36 D6 7A 4C 67 C7 91 0C 0A 22 B9 2D 5B CA" ///< Latest + "47 D2 CB 14 DF 38 97 59 C6 65 1A 1F 3E 00 1E 53 CC A5 17 E0" ///< Latest ///< Adafruit IO ///< SSL ///< Fingerprint From e67e9229c638399390a414d7d747fb663ed42bf9 Mon Sep 17 00:00:00 2001 From: brentru Date: Mon, 14 Jul 2025 16:11:09 -0400 Subject: [PATCH 2/2] Match clang diff --- src/AdafruitIO_Definitions.h | 28 ++++++++-------------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/src/AdafruitIO_Definitions.h b/src/AdafruitIO_Definitions.h index 34762d6..70080c8 100644 --- a/src/AdafruitIO_Definitions.h +++ b/src/AdafruitIO_Definitions.h @@ -79,39 +79,27 @@ class AdafruitIOGroupCallback { // Define actual debug output functions when necessary. #ifdef AIO_DEBUG #define AIO_DEBUG_PRINT(...) \ - { \ - AIO_PRINTER.print(__VA_ARGS__); \ - } ///< Prints debug output. + { AIO_PRINTER.print(__VA_ARGS__); } ///< Prints debug output. #define AIO_DEBUG_PRINTLN(...) \ - { \ - AIO_PRINTER.println(__VA_ARGS__); \ - } ///< Prints line from debug output. + { AIO_PRINTER.println(__VA_ARGS__); } ///< Prints line from debug output. #else #define AIO_DEBUG_PRINT(...) \ - { \ - } ///< Prints debug output + {} ///< Prints debug output #define AIO_DEBUG_PRINTLN(...) \ - { \ - } ///< Prints line from debug output. + {} ///< Prints line from debug output. #endif // Define actual error output functions when necessary. #ifdef AIO_ERROR #define AIO_ERROR_PRINT(...) \ - { \ - AIO_PRINTER.print(__VA_ARGS__); \ - } ///< Prints error output + { AIO_PRINTER.print(__VA_ARGS__); } ///< Prints error output #define AIO_ERROR_PRINTLN(...) \ - { \ - AIO_PRINTER.println(__VA_ARGS__); \ - } ///< Prints line from error output + { AIO_PRINTER.println(__VA_ARGS__); } ///< Prints line from error output #else #define AIO_ERROR_PRINT(...) \ - { \ - } ///< Prints error output. + {} ///< Prints error output. #define AIO_ERROR_PRINTLN(...) \ - { \ - } ///< Prints line from error output. + {} ///< Prints line from error output. #endif #define AIO_PING_INTERVAL 60000 ///< Adafruit IO Ping Interval, in milliseconds