Last updated:
0 purchases
particle setup
particle_setup #
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';
copied to clipboard
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});
}
copied to clipboard
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.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.