UNPKG

theta-ble-client-react-native

Version:

This library provides a way to control RICOH THETA using

37 lines (31 loc) 1.19 kB
export const TIMEOUT_SCAN = 30_000; export const TIMEOUT_PERIPHERAL = 1_000; export const TIMEOUT_CONNECT = 5_000; export const TIMEOUT_TAKE_PICTURE = 10_000; /** * Configuration of timeout. */ /** * Configuration of timeout. */ export class TimeoutObject { /** * Specifies a time period (in milliseconds) required to scan THETA. */ /** * Specifies a time period (in milliseconds) required to process an ble peripheral. */ /** * Specifies a time period (in milliseconds) required to connection with THETA. */ /** * Specifies a time period (in milliseconds) required to take a picture. */ constructor(timeout) { this.timeoutScan = (timeout === null || timeout === void 0 ? void 0 : timeout.timeoutScan) ?? TIMEOUT_SCAN; this.timeoutPeripheral = (timeout === null || timeout === void 0 ? void 0 : timeout.timeoutPeripheral) ?? TIMEOUT_PERIPHERAL; this.timeoutConnect = (timeout === null || timeout === void 0 ? void 0 : timeout.timeoutConnect) ?? TIMEOUT_CONNECT; this.timeoutTakePicture = (timeout === null || timeout === void 0 ? void 0 : timeout.timeoutTakePicture) ?? TIMEOUT_TAKE_PICTURE; } } //# sourceMappingURL=timeout.js.map