UNPKG

theta-ble-client-react-native

Version:

This library provides a way to control RICOH THETA using

44 lines (37 loc) 1.53 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TimeoutObject = exports.TIMEOUT_TAKE_PICTURE = exports.TIMEOUT_SCAN = exports.TIMEOUT_PERIPHERAL = exports.TIMEOUT_CONNECT = void 0; const TIMEOUT_SCAN = exports.TIMEOUT_SCAN = 30_000; const TIMEOUT_PERIPHERAL = exports.TIMEOUT_PERIPHERAL = 1_000; const TIMEOUT_CONNECT = exports.TIMEOUT_CONNECT = 5_000; const TIMEOUT_TAKE_PICTURE = exports.TIMEOUT_TAKE_PICTURE = 10_000; /** * Configuration of timeout. */ /** * Configuration of timeout. */ 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; } } exports.TimeoutObject = TimeoutObject; //# sourceMappingURL=timeout.js.map