Skip to content

Commit 0fc0672

Browse files
committed
Add main MQTT.h header file
1 parent 46e82af commit 0fc0672

File tree

15 files changed

+20
-13
lines changed

15 files changed

+20
-13
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ set(SOURCE_FILES
3232
examples/ESP32DevelopmentBoard/ESP32DevelopmentBoard.ino
3333
examples/ESP32DevelopmentBoard_SSL/ESP32DevelopmentBoard_SSL.ino
3434
src/lwmqtt
35+
src/MQTT.h
3536
src/MQTTClient.h
3637
src/system.cpp
3738
src/system.h)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Other shields and boards should also work if they provide a [Client](https://www
3434
The following example uses an Arduino MKR1000 to connect to shiftr.io. You can check on your device after a successful connection here: https://shiftr.io/try.
3535

3636
```c++
37-
#include <MQTTClient.h>
37+
#include <MQTT.h>
3838
#include <SPI.h>
3939
#include <WiFi101.h>
4040

examples/AdafruitHuzzahESP8266/AdafruitHuzzahESP8266.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// https://github.com/256dpi/arduino-mqtt
99

1010
#include <ESP8266WiFi.h>
11-
#include <MQTTClient.h>
11+
#include <MQTT.h>
1212

1313
const char ssid[] = "ssid";
1414
const char pass[] = "pass";

examples/AdafruitHuzzahESP8266_SSL/AdafruitHuzzahESP8266_SSL.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// https://github.com/256dpi/arduino-mqtt
99

1010
#include <ESP8266WiFi.h>
11-
#include <MQTTClient.h>
11+
#include <MQTT.h>
1212

1313
const char ssid[] = "ssid";
1414
const char pass[] = "pass";

examples/ArduinoEthernetShield/ArduinoEthernetShield.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// https://github.com/256dpi/arduino-mqtt
99

1010
#include <Ethernet.h>
11-
#include <MQTTClient.h>
11+
#include <MQTT.h>
1212

1313
byte mac[] = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
1414
byte ip[] = {192, 168, 1, 177}; // <- change to match your network

examples/ArduinoMKRGSM1400/ArduinoMKRGSM1400.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// https://github.com/256dpi/arduino-mqtt
1111

1212
#include <MKRGSM.h>
13-
#include <MQTTClient.h>
13+
#include <MQTT.h>
1414

1515
const char pin[] = "";
1616
const char apn[] = "apn";

examples/ArduinoMKRGSM1400_SSL/ArduinoMKRGSM1400_SSL.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// https://github.com/256dpi/arduino-mqtt
1111

1212
#include <MKRGSM.h>
13-
#include <MQTTClient.h>
13+
#include <MQTT.h>
1414

1515
const char pin[] = "";
1616
const char apn[] = "apn";

examples/ArduinoWiFi101/ArduinoWiFi101.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// https://github.com/256dpi/arduino-mqtt
1111

1212
#include <WiFi101.h>
13-
#include <MQTTClient.h>
13+
#include <MQTT.h>
1414

1515
const char ssid[] = "ssid";
1616
const char pass[] = "pass";

examples/ArduinoWiFi101_SSL/ArduinoWiFi101_SSL.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// https://github.com/256dpi/arduino-mqtt
1414

1515
#include <WiFi101.h>
16-
#include <MQTTClient.h>
16+
#include <MQTT.h>
1717

1818
const char ssid[] = "ssid";
1919
const char pass[] = "pass";

examples/ArduinoWiFiShield/ArduinoWiFiShield.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// https://github.com/256dpi/arduino-mqtt
99

1010
#include <WiFi.h>
11-
#include <MQTTClient.h>
11+
#include <MQTT.h>
1212

1313
const char ssid[] = "ssid";
1414
const char pass[] = "pass";

examples/ArduinoYun/ArduinoYun.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include <Bridge.h>
1111
#include <BridgeClient.h>
12-
#include <MQTTClient.h>
12+
#include <MQTT.h>
1313

1414
BridgeClient net;
1515
MQTTClient client;

examples/ArduinoYun_SSL/ArduinoYun_SSL.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
#include <Bridge.h>
1111
#include <BridgeSSLClient.h>
12-
#include <MQTTClient.h>
12+
#include <MQTT.h>
1313

1414
BridgeSSLClient net;
1515
MQTTClient client;

examples/ESP32DevelopmentBoard/ESP32DevelopmentBoard.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// https://github.com/256dpi/arduino-mqtt
99

1010
#include <WiFi.h>
11-
#include <MQTTClient.h>
11+
#include <MQTT.h>
1212

1313
const char ssid[] = "ssid";
1414
const char pass[] = "pass";

examples/ESP32DevelopmentBoard_SSL/ESP32DevelopmentBoard_SSL.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// https://github.com/256dpi/arduino-mqtt
99

1010
#include <WiFiClientSecure.h>
11-
#include <MQTTClient.h>
11+
#include <MQTT.h>
1212

1313
const char ssid[] = "ssid";
1414
const char pass[] = "pass";

src/MQTT.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#ifndef MQTT_H
2+
#define MQTT_H
3+
4+
#include "MQTTClient.h"
5+
6+
#endif

0 commit comments

Comments
 (0)