"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getDetailDeviceList = getDetailDeviceList;
exports.getDeviceList = getDeviceList;
exports.getDeviceState = getDeviceState;
exports.updateAllDevStateFromServer = updateAllDevStateFromServer;
var _reactNative = require("react-native");
const funsdk = _reactNative.NativeModules.FunSDKDevListConnectModule;
function getDeviceList() {
  return funsdk.getDevList();
}
// OFF_LINE：0  offline
// ON_LINE：1 online
// SLEEP：2 Sleeping (low-power devices)
// WAKE_UP：3 Waking up (low power device)
// WAKE：4  Woke up (low power device)
// SLEEP_UNWAKE：5  Unwakeable during sleep (low power device)
// PREPARE_SLEEP：6 Preparing for Sleep (low power device)
/*
 * deviceId: string;
 */
function getDeviceState(params) {
  return funsdk.getDevState(params);
}
function getDetailDeviceList() {
  return funsdk.getDetailDeviceList();
}
function updateAllDevStateFromServer() {
  return funsdk.updateAllDevStateFromServer();
}
//# sourceMappingURL=list.js.map