BlinkUp

Contents

Electric Imp BlinkUp ionic plugin.

https://github.com/SensorShare/cordova-plugin-blinkup

Ionic BlinkUp插件的安装(Installation)

ionic cordova plugin add cordova-plugin-blinkup npm install @ionic-native/blinkup

Ionic BlinkUp插件支持的平台(Supported Platforms)

  • Android
  • iOS

Ionic BlinkUp插件的用法(Usage)

import { BlinkUp } from '@ionic-native/blinkup';

const options = {
   apiKey: 'API_KEY',
   timeoutMs: 60000,
   ssid: 'MY_SSID',
   password: 'MY_PASSWORD'
 }
 BlinkUp.flashWifiBlinkUp(options).subscribe(
    (result) => console.log('Done'),
    (error) => console.log(error)
  )