Move a few MQTT options from mqtt.c to mqtt_opts.h

This commit is contained in:
Dirk Ziegelmeier
2016-12-21 09:42:25 +01:00
parent 6e219b6b11
commit 3a557baedd
2 changed files with 31 additions and 29 deletions

View File

@@ -71,6 +71,34 @@ extern "C" {
#define MQTT_REQ_MAX_IN_FLIGHT 4
#endif
/**
* MQTT server port to connect to
*/
#ifndef MQTT_PORT
#define MQTT_PORT 1883
#endif
/**
* Seconds between each cyclic timer call.
*/
#ifndef MQTT_CYCLIC_TIMER_INTERVAL
#define MQTT_CYCLIC_TIMER_INTERVAL 5
#endif
/**
* Publish, subscribe and unsubscribe request timeout in seconds.
*/
#ifndef MQTT_REQ_TIMEOUT
#define MQTT_REQ_TIMEOUT 30
#endif
/**
* Seconds for MQTT connect response timeout after sending connect request
*/
#ifndef MQTT_CONNECT_TIMOUT
#define MQTT_CONNECT_TIMOUT 100
#endif
/**
* @}
*/