diff --git a/include/user_config.h b/include/user_config.h index b7694a8..16ae8e6 100644 --- a/include/user_config.h +++ b/include/user_config.h @@ -1,30 +1,31 @@ -#ifndef _USER_CONFIG_H_ -#define _USER_CONFIG_H_ - -#define CFG_HOLDER 0x00FF55A4 /* Change this value to load default configurations */ -#define CFG_LOCATION 0x3C /* Please don't change or if you know what you doing */ -#define CLIENT_SSL_ENABLE - -/*DEFAULT CONFIGURATIONS*/ - -#define MQTT_HOST "192.168.11.122" //or "mqtt.yourdomain.com" -#define MQTT_PORT 1880 -#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 "yourpassword" -#define STA_TYPE AUTH_WPA2_PSK - -#define MQTT_RECONNECT_TIMEOUT 5 /*second*/ - -#define DEFAULT_SECURITY 0 -#define QUEUE_BUFFER_SIZE 2048 - -#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/*/ -#endif +#ifndef __MQTT_CONFIG_H__ +#define __MQTT_CONFIG_H__ + +#define CFG_HOLDER 0x00FF55A4 /* Change this value to load default configurations */ +#define CFG_LOCATION 0x3C /* Please don't change or if you know what you doing */ +// #define MQTT_SSL_ENABLE + +/*DEFAULT CONFIGURATIONS*/ + +#define MQTT_HOST "192.168.1.100" //or "mqtt.yourdomain.com" +#define MQTT_PORT 1883 +#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 "yourpassword" +#define STA_TYPE AUTH_WPA2_PSK + +#define MQTT_RECONNECT_TIMEOUT 5 /*second*/ + +#define DEFAULT_SECURITY 0 +#define QUEUE_BUFFER_SIZE 2048 + +#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/*/ + +#endif // __MQTT_CONFIG_H__ \ No newline at end of file