airkiss 1.0.1 airkiss: ^1.0.1 copied to clipboard
A dart airkiss lib.
dart-airkiss #
A dart wechat airkiss lib to config IOT device.
Usage #
To use this plugin, add airkiss
as a dependency in your pubspec.yaml file.
dependencies:
airkiss: ^1.0.0
Example #
import 'package:airkiss/airkiss.dart';
import 'package:airkiss/airkiss.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");
}