rearrange child classes to match new constructor

This commit is contained in:
Todd Treece 2015-10-05 14:57:44 -04:00
parent b48265faed
commit f1499b484a
3 changed files with 21 additions and 10 deletions

View File

@ -37,9 +37,13 @@
// in the compilation of the library).
class Adafruit_MQTT_CC3000 : public Adafruit_MQTT {
public:
Adafruit_MQTT_CC3000(Adafruit_CC3000 *cc3k, const char *server, uint16_t port,
const char *cid, const char *user, const char *pass):
Adafruit_MQTT(server, port, cid, user, pass),
Adafruit_MQTT_CC3000(Adafruit_CC3000 *cc3k,
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),
cc3000(cc3k)
{}

View File

@ -35,10 +35,13 @@
// and even other platforms like ESP8266.
class Adafruit_MQTT_Client : public Adafruit_MQTT {
public:
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),
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),
client(client)
{}

View File

@ -35,9 +35,13 @@
// in the compilation of the library).
class Adafruit_MQTT_FONA : public Adafruit_MQTT {
public:
Adafruit_MQTT_FONA(Adafruit_FONA *f, const char *server, uint16_t port,
const char *cid, const char *user, const char *pass):
Adafruit_MQTT(server, port, cid, user, pass),
Adafruit_MQTT_FONA(Adafruit_FONA *f,
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),
fona(f)
{}