UNPKG

react-native-esp-smartconfig

Version:

ESP-TOUCH protocol to seamlessly configure Wi-Fi devices connecting to a router.

20 lines 725 B
import { NativeModules, Platform } from 'react-native'; const LINKING_ERROR = `The package 'react-native-esp-smartconfig' doesn't seem to be linked. Make sure: \n\n` + Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n'; const EspSmartconfig = NativeModules.EspSmartconfig ? NativeModules.EspSmartconfig : new Proxy({}, { get() { throw new Error(LINKING_ERROR); } }); export function start(args) { return EspSmartconfig.start(args); } export function stop() { return EspSmartconfig.stop(); } export function getWifiInfo() { return EspSmartconfig.getWifiInfo(); } //# sourceMappingURL=index.js.map