kopia lustrzana https://github.com/martin-ger/esp_mqtt
37 wiersze
926 B
C
37 wiersze
926 B
C
#ifndef __MQTT_CONFIG_H__
|
|
#define __MQTT_CONFIG_H__
|
|
|
|
#define MQTT_SSL_ENABLE
|
|
|
|
/*DEFAULT CONFIGURATIONS*/
|
|
|
|
#define MQTT_HOST "192.168.0.101" //or "mqtt.yourdomain.com"
|
|
#define MQTT_PORT 1883
|
|
#define MQTT_BUF_SIZE 1024
|
|
#define MQTT_KEEPALIVE 120 /*second*/
|
|
|
|
#define MQTT_CLIENT_ID "CLIENT_1234"
|
|
#define MQTT_USER "USER"
|
|
#define MQTT_PASS "PASS"
|
|
#define MQTT_CLEAN_SESSION 1
|
|
#define MQTT_KEEPALIVE 120
|
|
|
|
#define STA_SSID "SSID"
|
|
#define STA_PASS "PASS"
|
|
|
|
#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/*/
|
|
|
|
#if defined(DEBUG_ON)
|
|
#define INFO( format, ... ) os_printf( format, ## __VA_ARGS__ )
|
|
#else
|
|
#define INFO( format, ... )
|
|
#endif
|
|
|
|
#endif // __MQTT_CONFIG_H__
|