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

allow unauthenticated connections to mqtt brokers

This commit is contained in:
Todd Treece
2016-07-13 15:57:00 -04:00
parent 9b23f6747e
commit f793f8d2d0
5 changed files with 21 additions and 5 deletions

View File

@ -133,8 +133,8 @@ class Adafruit_MQTT {
const __FlashStringHelper *pass);
Adafruit_MQTT(const char *server,
uint16_t port,
const char *user,
const char *pass);
const char *user = "",
const char *pass = "");
Adafruit_MQTT(const __FlashStringHelper *server,
uint16_t port,
const __FlashStringHelper *user,
@ -153,6 +153,8 @@ class Adafruit_MQTT {
// Use connectErrorString() to get a printable string version of the
// error.
int8_t connect();
int8_t connect(const char *user, const char *pass);
int8_t connect(const __FlashStringHelper *user, const __FlashStringHelper *pass);
// Return a printable string version of the error code returned by
// connect(). This returns a __FlashStringHelper*, which points to a