-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmqtt8266.ino
35 lines (27 loc) · 898 Bytes
/
mqtt8266.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
Vladimir Kirievskiy (C) 2019
********************************************************************************************
* @brief MQTT client software for esp8266 platform (tested on Wemos D1 mini)
* @license MIT
* SDK: Arduino IDE 1.8.5 with plugin for esp8266
*
********************************************************************************************
* @author V. Kirievskiy aka vlakir
* vladimir@kirievskiy.ru
* https://github.com/vlakir
* This software is furnished "as is", without technical support, and with no
* warranty, express or implied, as to its usefulness for any purpose.
*/
#include "mqtt8266.h"
// logins and passwords for wifi and mqtt-broker, etc.
SettingsStruct xGlobalSettings;
void setup(void) {
vInitSerial();
vGetGlobalSettings();
initPeripheral();
vConnectWifi();
}
void loop(void) {
vMqttLoop();
vSerialLoop();
}