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.
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.
const result = await ParticleSetup().getDeviceId();
if (result.isOk()) {
print(${result.deviceIdHex});
}
Gets the version of the device.
Gets the device’s identifier.
Gets a list of wi-fi networks visible to the device.
Gets the device’s Public Key to use when configuring wi-fi credentials.
Sets the device’s claim code.
Configure the device’s wi-fi network
Connects the device to the previously configured wi-fi network.