1
0
mirror of https://github.com/adafruit/Adafruit_MQTT_Library.git synced 2025-07-29 02:02:00 +03:00

essentially, add Zero support by shimming in the missing functions

This commit is contained in:
ladyada
2015-11-11 10:22:26 -05:00
parent 03c1a2d07b
commit dbc989ac1d
2 changed files with 14 additions and 4 deletions

View File

@ -22,10 +22,11 @@
#ifndef _ADAFRUIT_MQTT_H_
#define _ADAFRUIT_MQTT_H_
#if ARDUINO >= 100
#include "Arduino.h"
#else
#include "WProgram.h"
#include "Arduino.h"
#ifdef ARDUINO_SAMD_ZERO
#define strncpy_P(dest, src, len) strncpy((dest), (src), (len))
#define strncasecmp_P(f1, f2, len) strncasecmp((f1), (f2), (len))
#endif
// Uncomment/comment to turn on/off debug output messages.
@ -33,6 +34,7 @@
// Set where debug messages will be printed.
#define DEBUG_PRINTER Serial
// If using something like Zero or Due, change the above to SerialUSB
// Define actual debug output functions when necessary.
#ifdef MQTT_DEBUG