UNPKG

theta-ble-client-react-native

Version:

This library provides a way to control RICOH THETA using

41 lines (38 loc) 1.63 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.WlanControlCommand = void 0; var _thetaService = require("./theta-service"); var _values = require("./values"); var ThetaBleClient = _interopRequireWildcard(require("../native")); function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); } /* eslint no-useless-catch: 0 */ /** * WLAN Control Command Service * * Service: F37F568F-9071-445D-A938-5441F2E82399 */ class WlanControlCommand extends _thetaService.ThetaService { constructor(device) { super(); this.service = _values.BleServiceEnum.WLAN_CONTROL_COMMAND; this.device = device; } /** * Read WLAN password state. * * Characteristic: E522112A-5689-4901-0803-0520637DC895 * * @returns start-up status */ async getWlanPasswordState() { try { return await ThetaBleClient.nativeWlanControlCommandGetWlanPasswordState(this.device.id); } catch (error) { throw error; } } } exports.WlanControlCommand = WlanControlCommand; //# sourceMappingURL=wlan-control-command.js.map