You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
370 B
20 lines
370 B
#define SERIAL_SPEED 115200
|
|
|
|
// LED
|
|
#define LED_PIN D0
|
|
|
|
// WIFI
|
|
#define WIFI_SSID "XXX"
|
|
#define WIFI_PASSWORD "XXX"
|
|
|
|
// MQTT
|
|
#define MQTT_SERVER "XXX"
|
|
#define MQTT_PORT 1883
|
|
#define MQTT_USER "XXX"
|
|
#define MQTT_PASS "XXX"
|
|
|
|
void setup();
|
|
void setupWifi();
|
|
void testConnectMQTT();
|
|
void callbackMQTT(char* topic, byte* payload, unsigned int length);
|
|
void loop();
|