Added support for QOS1 for messages received from the server. Add qos argument to subscribe. Auto ack after callback is run

This commit is contained in:
Mark Cheverton
2013-10-31 21:45:30 +00:00
parent fb33abc1c0
commit 359fd03f03
2 changed files with 30 additions and 4 deletions

View File

@@ -67,7 +67,9 @@ public:
boolean publish(char *, uint8_t *, unsigned int, boolean);
boolean publish_P(char *, uint8_t PROGMEM *, unsigned int, boolean);
boolean subscribe(char *);
boolean subscribe(char *, uint8_t qos);
boolean unsubscribe(char *);
boolean puback(uint16_t msgId);
boolean loop();
boolean connected();
};