rearrange child classes to match new constructor
This commit is contained in:
parent
b48265faed
commit
f1499b484a
@ -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)
|
||||
{}
|
||||
|
||||
|
@ -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)
|
||||
{}
|
||||
|
||||
|
@ -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)
|
||||
{}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user