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.
|
|
|
#ifndef _USER_CONFIG_H_
|
|
|
|
#define _USER_CONFIG_H_
|
|
|
|
#include <c_types.h>
|
|
|
|
#ifdef __WIN32__
|
|
|
|
#include <_mingw.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define MQTT_RECONNECT_TIMEOUT 5 // seconds
|
|
|
|
#define MQTT_BUF_SIZE 1024
|
|
|
|
|
|
|
|
#define MQTT_HOST "10.0.0.220" // "mqtt.yourdomain.com" or ip "10.0.0.1"
|
|
|
|
#define MQTT_PORT 1883
|
|
|
|
#define MQTT_SECURITY 0
|
|
|
|
|
|
|
|
#define MQTT_CLIENT_ID "esp-link" // ""
|
|
|
|
#define MQTT_USER ""
|
|
|
|
#define MQTT_PASS ""
|
|
|
|
#define MQTT_KEEPALIVE 120 // seconds
|
|
|
|
#define MQTT_CLSESSION true
|
|
|
|
|
|
|
|
#define PROTOCOL_NAMEv31 // MQTT version 3.1 compatible with Mosquitto v0.15
|
|
|
|
//PROTOCOL_NAMEv311 // MQTT version 3.11 compatible with https://eclipse.org/paho/clients/testing/
|
|
|
|
|
|
|
|
extern char* esp_link_version;
|
|
|
|
|
|
|
|
extern uint8_t UTILS_StrToIP(const char* str, void *ip);
|
|
|
|
|
|
|
|
extern void ICACHE_FLASH_ATTR init(void);
|
|
|
|
|
|
|
|
#endif
|