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.
esp-link/include/user_config.h

20 lines
616 B

#ifndef _USER_CONFIG_H_
#define _USER_CONFIG_H_
9 years ago
#define MQTT_RECONNECT_TIMEOUT 5 // seconds
#define MQTT_BUF_SIZE 1024
9 years ago
#define MQTT_HOST "10.0.0.220" // "mqtt.yourdomain.com" or ip "10.0.0.1"
#define MQTT_PORT 1883
#define MQTT_SECURITY 0
9 years ago
#define MQTT_CLIENT_ID system_get_chip_id_str() // "esp-link"
9 years ago
#define MQTT_USER ""
#define MQTT_PASS ""
#define MQTT_KEEPALIVE 120 // seconds
#define MQTT_CLSESSION true
9 years ago
#define PROTOCOL_NAMEv31 // MQTT version 3.1 compatible with Mosquitto v0.15/
9 years ago
//PROTOCOL_NAMEv311 // MQTT version 3.11 compatible with https://eclipse.org/paho/clients/testing/
#endif