12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef __USER_CONFIG_H__
- #define __USER_CONFIG_H__
- #define USE_OPTIMIZE_PRINTF
- /* FLASH CONFIGURATION SETTINGS */
- #define CFG_HOLDER 0x4171134
- #define CFG_LOCATION 0x2 // this needs to be relocated to end of flash
- /* DEFAULT Wi-Fi SETTINGS */
- #define WIFI_TIMEOUT 30000
- #define MAX_APS 5 // number of stored Wi-Fi accesspoint credientials (1 - 5)
- #define STORED_APS 1
- /* MQTT DEFAULT CONFIGURATIONS */
- #define MQTT_HOST_DEFAULT "ideasx-cloud.duckdns.org" //or "mqtt.yourdomain.com"
- #define MQTT_PORT_DEFAULT 1883
- #define MQTT_BUF_SIZE 1024
- #define MQTT_KEEPALIVE_DEFAULT 20 // seconds
- #define MQTT_CLEAN_SESSION 1
- #define QUEUE_BUFFER_SIZE 2048
- #define MQTT_RECONNECT_TIMEOUT 5 // seconds
- #define DEFAULT_SECURITY 0
- //#define PROTOCOL_NAMEv31
- #define PROTOCOL_NAMEv311
- //#define MQTT_SSL_ENABLE
- //#define MQTT_USER_DEFAULT "USER"
- //#define MQTT_PASS_DEFAULT "PASS"
- /* OTA SETTINGS */
- #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 // ms
- #define BATTERY_CHECK_INTERVAL 600000
- // This needs to be changed to support a logging library
- #if defined(DEBUG_ON)
- #define INFO( format, ... ) os_printf( format, ## __VA_ARGS__ )
- #else
- #define INFO( format, ... )
- #endif
- #endif
|