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
378 B
20 lines
378 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_password "XXX"
|
|
|
|
void setup();
|
|
void setupWifi();
|
|
void testConnectMQTT();
|
|
void callbackMQTT(char* topic, byte* payload, unsigned int length);
|
|
void loop();
|