Skip to content

Commit

Permalink
Merge pull request #138 from brentru/blaskovicz-patch
Browse files Browse the repository at this point in the history
Fix Group Feed Name length Limit
  • Loading branch information
brentru authored Sep 23, 2020
2 parents 926a4ff + 6c1cc5e commit 0ef372c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Adafruit IO Arduino
version=3.8.0
version=3.9.1
author=Adafruit
maintainer=Adafruit <[email protected]>
sentence=Arduino library to access Adafruit IO.
Expand Down
10 changes: 7 additions & 3 deletions src/AdafruitIO_Definitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,15 @@ class AdafruitIOGroupCallback {
///< SSL
///< Fingerprint

#define AIO_FEED_NAME_LENGTH 20 ///< Maximum length of an Adafruit IO Feed name
#define AIO_FEED_NAME_LENGTH \
258 ///< Maximum length of an Adafruit IO Feed \
///< Name; 128 + 1 + 128 for the group, a dot \
///< , and actual feed name.
#define AIO_DATA_LENGTH \
45 ///< Maximum length of data sent/recieved from Adafruit IO
#define AIO_CSV_LENGTH \
150 ///< Maximum comma-separated-value length from Adafruit IO
AIO_FEED_NAME_LENGTH + 4 ///< Maximum comma-separated-value length from \
///< Adafruit IO

/** aio_status_t offers 13 status states */
typedef enum {
Expand Down Expand Up @@ -162,4 +166,4 @@ typedef enum {

} aio_time_format_t;

#endif /* ADAFRUITIO_DEFINITIONS_H_ */
#endif /* ADAFRUITIO_DEFINITIONS_H_ */

0 comments on commit 0ef372c

Please sign in to comment.