A dart wechat airkiss lib to config IOT device from sintrb. View on GitHub origin
To use this plugin, add airkiss_dart
as a dependency in your pubspec.yaml file.
dependencies:
airkiss_dart: ^1.0.1
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");
}