12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef __USER_CONFIG_H__
- #define __USER_CONFIG_H__
- #define USE_OPTIMIZE_PRINTF
- #define CFG_HOLDER 0x4171134
- #define CFG_LOCATION 0x2
- #define WIFI_TIMEOUT 30000
- #define MAX_APS 5
- #define STORED_APS 1
- #define MQTT_HOST_DEFAULT "ideasx-cloud.duckdns.org"
- #define MQTT_PORT_DEFAULT 1883
- #define MQTT_BUF_SIZE 1024
- #define MQTT_KEEPALIVE_DEFAULT 20
- #define MQTT_CLEAN_SESSION 1
- #define QUEUE_BUFFER_SIZE 2048
- #define MQTT_RECONNECT_TIMEOUT 5
- #define DEFAULT_SECURITY 0
- #define PROTOCOL_NAMEv311
- #define OTA_HOST_DEFAULT "fphx.duckdns.org"
- #define OTA_PORT_DEFAULT 2000
- #define OTA_ROM0 "rom0.bin"
- #define OTA_ROM1 "rom1.bin"
- #define OTA_FILE "file.bin"
- #define HTTP_HEADER "Connection: keep-alive\r\n\
- Cache-Control: no-cache\r\n\
- User-Agent: rBoot-Sample/1.0\r\n\
- Accept: */*\r\n\r\n"
- #define OTA_NETWORK_TIMEOUT 10000
- #define BATTERY_CHECK_INTERVAL 600000
- #if defined(DEBUG_ON)
- #define INFO( format, ... ) os_printf( format, ## __VA_ARGS__ )
- #else
- #define INFO( format, ... )
- #endif
- #endif
|