1
0
mirror of https://github.com/adafruit/Adafruit_MQTT_Library.git synced 2025-07-30 13:23:06 +03:00

remove defaults from mqtt constructors

This commit is contained in:
Todd Treece
2015-10-22 10:09:16 -04:00
parent 371b16bfab
commit 2aed9ae737
5 changed files with 93 additions and 36 deletions

View File

@ -35,13 +35,15 @@
// and even other platforms like ESP8266.
class Adafruit_MQTT_Client : public Adafruit_MQTT {
public:
Adafruit_MQTT_Client(Client *client,
const char *server = "io.adafruit.com",
uint16_t port = 1883,
const char *user = "",
const char *pass = "",
const char *cid = ""):
Adafruit_MQTT(server, port, user, pass, cid),
Adafruit_MQTT_Client(Client *client, const char *server, uint16_t port,
const char *cid, const char *user, const char *pass):
Adafruit_MQTT(server, port, cid, user, pass),
client(client)
{}
Adafruit_MQTT_Client(Client *client, const char *server, uint16_t port,
const char *user, const char *pass):
Adafruit_MQTT(server, port, user, pass),
client(client)
{}