homebridge-switchbot-bluetooth-platform
Version:
A Homebridge platform Plugin for controlling SwitchBot bots using BLE (Bluetooth Low Energry)
28 lines • 1.26 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CHECK_CACHE_TTL_PERIOD = exports.CACHE_TTL = exports.DEFAULT_AUTO_OFF_IN_PRESS_MODE = exports.DEFAULT_BATTERY_LEVEL = exports.DEFAULT_SCAN_RETRY_COOLDOWN = exports.DEFAULT_SCAN_RETRIES = exports.DEFAULT_SCAN_DURATION = exports.PLUGIN_NAME = exports.PLATFORM_NAME = void 0;
/**
* This is the name of the platform that users will use to register the plugin in the Homebridge config.json
*/
exports.PLATFORM_NAME = 'SwitchbotBluetoothPlatform';
/**
* This must match the name of your plugin as defined the package.json
*/
exports.PLUGIN_NAME = 'homebridge-switchbot-bluetooth-platform';
exports.DEFAULT_SCAN_DURATION = 5000;
exports.DEFAULT_SCAN_RETRIES = 5;
exports.DEFAULT_SCAN_RETRY_COOLDOWN = 1000;
exports.DEFAULT_BATTERY_LEVEL = 100;
exports.DEFAULT_AUTO_OFF_IN_PRESS_MODE = true;
/**
* Cache TTL - the amount of time cached items should live
* set to 1 day (86,400 seconds)
*/
exports.CACHE_TTL = 86400;
/**
* Amount of time to wait between each periodical check of cache items that should be deleted
* (items with longer lifespan than the specified TTL)
* set to 1 hour (3600 seconds)
*/
exports.CHECK_CACHE_TTL_PERIOD = 3600;
//# sourceMappingURL=settings.js.map