Skip to content

OpenIoTHub/airkiss_dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

airkiss_dart[nullsafety]

pub package

A dart wechat airkiss lib to config IOT device from sintrb. View on GitHub origin

Usage

To use this plugin, add airkiss_dart as a dependency in your pubspec.yaml file.

dependencies:
  airkiss_dart: ^1.0.1

Example

import 'package:airkiss_dart/airkiss_dart.dart';


import 'package:airkiss_dart/airkiss_dart.dart';

void test(String ssid, String pwd) async {
  print('config ssid:$ssid, pwd:$pwd');
  AirkissConfig ac = AirkissConfig();
  var res = await ac.config(ssid, pwd);
  if (res != null) {
    print('result: $res');
  }
  else {
    print(
        'config failed!!! please ensure phone/pc connected to Wi—Fi[$ssid] with 2.4GHz Channel(NOT 5GHz Channel)');
  }
}

void main() {
  test("SSID", "PASSWORD");
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages