kopia lustrzana https://github.com/martin-ger/esp_mqtt
29 wiersze
694 B
C
29 wiersze
694 B
C
#ifndef _USER_CONFIG_H_
|
|
#define _USER_CONFIG_H_
|
|
|
|
#define CFG_HOLDER 0x00FF55A4
|
|
#define CFG_LOCATION 0x3C /* Please don't change or if you know what you doing */
|
|
|
|
/*DEFAULT CONFIGURATIONS*/
|
|
|
|
#define MQTT_HOST "mqtt.yourdomain.com" //or "192.168.11.1"
|
|
#define MQTT_PORT 8440
|
|
#define MQTT_BUF_SIZE 1024
|
|
#define MQTT_KEEPALIVE 120 /*second*/
|
|
|
|
#define MQTT_CLIENT_ID "DVES_%08X"
|
|
#define MQTT_USER "DVES_USER"
|
|
#define MQTT_PASS "DVES_PASS"
|
|
|
|
#define STA_SSID "DVES_HOME"
|
|
#define STA_PASS "wifipassword"
|
|
#define STA_TYPE AUTH_WPA2_PSK
|
|
|
|
#define MQTT_RECONNECT_TIMEOUT 5 /*second*/
|
|
#define MQTT_CONNTECT_TIMER 5 /**/
|
|
|
|
#define MQTT_CLIENT_SSL_ENABLE
|
|
//#undef MQTT_CLIENT_SSL_ENABLE
|
|
|
|
#endif
|