node-switchbot
Version:
The node-switchbot is a Node.js module which allows you to control your Switchbot Devices through Bluetooth (BLE).
44 lines • 1.64 kB
TypeScript
/**
* Updates the base URL for the SwitchBot API endpoints.
* @param {string} newBaseURL - The new base URL to use.
*/
export declare function updateBaseURL(newBaseURL: string): void;
export declare const urls: {
readonly baseURL: string;
readonly devicesURL: string;
readonly setupWebhook: string;
readonly queryWebhook: string;
readonly updateWebhook: string;
readonly deleteWebhook: string;
};
/**
* constants used to access SwitchBot BLE API
*/
export declare const SERV_UUID_PRIMARY = "cba20d00224d11e69fb80002a5d5c51b";
export declare const CHAR_UUID_WRITE = "cba20002224d11e69fb80002a5d5c51b";
export declare const CHAR_UUID_NOTIFY = "cba20003224d11e69fb80002a5d5c51b";
export declare const CHAR_UUID_DEVICE = "2a00";
export declare const READ_TIMEOUT_MSEC = 3000;
export declare const WRITE_TIMEOUT_MSEC = 3000;
export declare const COMMAND_TIMEOUT_MSEC = 3000;
export declare const DEFAULT_DISCOVERY_DURATION = 5000;
export declare const PRIMARY_SERVICE_UUID_LIST: never[];
export declare enum WoSmartLockProCommands {
GET_CKIV = "570f2103",
LOCK_INFO = "570f4f8102",
UNLOCK = "570f4e0101000080",
UNLOCK_NO_UNLATCH = "570f4e01010000a0",
LOCK = "570f4e0101000000",
ENABLE_NOTIFICATIONS = "570e01001e00008101",
DISABLE_NOTIFICATIONS = "570e00"
}
export declare enum WoSmartLockCommands {
GET_CKIV = "570f2103",
LOCK_INFO = "570f4f8101",
UNLOCK = "570f4e01011080",
UNLOCK_NO_UNLATCH = "570f4e010110a0",
LOCK = "570f4e01011000",
ENABLE_NOTIFICATIONS = "570e01001e00008101",
DISABLE_NOTIFICATIONS = "570e00"
}
//# sourceMappingURL=settings.d.ts.map