First upload, ver 0.9.0

This commit is contained in:
vmasdani
2019-01-16 16:28:20 +07:00
commit dd4ad8bde6
15 changed files with 1620 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#include <AntaresESP8266MQTT.h>
#define ACCESSKEY "your-access-key"
#define WIFISSID "your-wifi-ssid"
#define PASSWORD "your-wifi-password"
#define projectName = "your-project-name";
#define deviceName = "your-device-name";
AntaresESP8266MQTT antares(ACCESSKEY);
void setup() {
Serial.begin(115200);
antares.setDebug(true);
antares.wifiConnection(WIFISSID, PASSWORD);
antares.setMqttServer();
}
void loop() {
antares.checkMqttConnection();
}