ESPresense/src/defaults.h

56 lines
1.7 KiB
C
Raw Normal View History

2021-09-15 18:11:32 +02:00
#ifdef VERBOSE
#define LOG_LOCAL_LEVEL ESP_LOG_VERBOSE
#endif
2021-03-15 20:58:17 +01:00
//Replace with your MQTT Broker address
#define DEFAULT_MQTT_HOST "mqtt.z13.org"
2018-10-01 23:26:07 +02:00
2021-03-15 20:58:17 +01:00
//Replace with your MQTT Broker port
#define DEFAULT_MQTT_PORT 1883
2018-10-01 23:26:07 +02:00
2021-03-15 20:58:17 +01:00
//Replace with your MQTT Broker user
#define DEFAULT_MQTT_USER ""
2018-10-01 23:26:07 +02:00
2021-03-15 20:58:17 +01:00
//Replace with your MQTT Broker password
#define DEFAULT_MQTT_PASSWORD ""
2018-10-01 23:26:07 +02:00
2021-08-24 00:10:53 +02:00
// Maximum distance (in meters) to report. Devices that are calculated to be further than this distance in meters will not be reported
#define DEFAULT_MAX_DISTANCE 16
2018-10-02 02:01:29 +02:00
2021-08-24 06:15:11 +02:00
//Define the base topic for room detection. Usually "espresense"
#define CHANNEL String("espresense")
#define DEFAULT_QUERY ""
#define DEFAULT_INCLUDE ""
#define DEFAULT_EXCLUDE ""
#define BLE_SCAN_INTERVAL 40 // Used to determine antenna sharing between Bluetooth and Wi-Fi. Do not modify unless you are confident you know what you're doing
#define BLE_SCAN_WINDOW 30 // Used to determine antenna sharing between Bluetooth and Wi-Fi. Do not modify unless you are confident you know what you're doing
2019-01-13 15:42:24 +01:00
#define DEFAULT_REF_RSSI (-65)
#define DEFAULT_ABSORPTION (3.5)
#define DEFAULT_FORGET_MS 300000 // Ms to remove fingerprint after not seeing it
#define DEFAULT_SKIP_DISTANCE 0.1 // If beacon has moved less than this skip update
#define DEFAULT_SKIP_MS 5000 // Ms to skip mqtt update if no movement
2021-03-30 19:24:02 +02:00
// Number of seconds between update checks
#define CHECK_FOR_UPDATES_INTERVAL 300
2021-09-22 02:51:54 +02:00
// I2C Defaults
#define DEFAULT_I2C_BUS_1_SDA 21
#define DEFAULT_I2C_BUS_1_SCL 22
#define DEFAULT_I2C_BUS 1
// TSL2561 Defaults
#define DEFAULT_TSL2561_I2C_GAIN "auto"
2021-09-22 02:51:54 +02:00
#ifdef VERSION
#define DEFAULT_AUTO_UPDATE true
#define DEFAULT_OTA_UPDATE false
2021-09-22 02:51:54 +02:00
#else
#define DEFAULT_AUTO_UPDATE false
#define DEFAULT_OTA_UPDATE true
2021-09-22 02:51:54 +02:00
#endif