esp_rainmaker_association 1.0.0 copy "esp_rainmaker_association: ^1.0.0" to clipboard
esp_rainmaker_association: ^1.0.0 copied to clipboard

Native dart implementation of ESP Rainmaker provisioning and user mapping.

example/esp_rainmaker_association_example.dart

import 'package:esp_rainmaker_association/esp_rainmaker_association.dart';
import 'package:uuid/uuid.dart';

Future<void> main() async {
  final device = EspDevice();
  final mapping = UserMapping(device);

  final networks = await device.scanNetworks();
  print(networks);

  final uidGen = Uuid();
  final secKey = uidGen.v1();

  await mapping.mapUser('user_id', secKey);
  await device.provision('ssid', 'pass');
}
2
likes
140
pub points
0%
popularity

Publisher

unverified uploader

Native dart implementation of ESP Rainmaker provisioning and user mapping.

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (license)

Dependencies

http, protobuf

More

Packages that depend on esp_rainmaker_association