particle_setup 0.3.1

Dart native
Flutter Android iOS

Dart library to send commands to Particle IoT devices (https://www.particle.io/).

particle_setup #

Kirk Eaton

Flutter library to send commands to Particle devices (https://www.particle.io/).

Note: This plugin has only been tested using the Photon wi-fi module.

Usage #

Add the following import to you Dart code:

import 'package:particle_setup/particle_setup.dart';

Ensure your phone is connected to the device's access point and run any of the provided commands.

Example #

const result = await ParticleSetup().getDeviceId();
if (result.isOk()) {
    print(${result.deviceIdHex});
}

Commands #

getVersion #

Gets the version of the device.

getDeviceId #

Gets the device's identifier.

scanAP #

Gets a list of wi-fi networks visible to the device.

getPublicKey #

Gets the device's Public Key to use when configuring wi-fi credentials.

setClaimCode #

Sets the device's claim code.

configureAP #

Configure the device's wi-fi network

connectAP #

Connects the device to the previously configured wi-fi network.

0
likes
70
pub points
36%
popularity

Dart library to send commands to Particle IoT devices (https://www.particle.io/).

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

kirk.eaton@gmail.com

License

MIT (LICENSE)

Dependencies

asn1lib, convert, json_annotation, pointycastle

More

Packages that depend on particle_setup