Please note that the new commands are currently in beta and are intended to be used by early adopters only.
Known issues, limitations and important notes:
- Device OS 0.9.0 is required for the new commands to work.
- It is still required to use Particle mobile apps to configure gateway devices.
- When adding a new device to a network, the assisting device has to be connected to the host computer via USB along with the joining device.
- The new commands will likely not work on Windows. We will release a fix for this issue in a few weeks.
A few examples:
Getting the list of USB devices attached to the system
$ particle usb list argon1 [b43aee28c3b1e2a1a0c71e43] (Argon) xenon1 [461d5ab513f91475c636b0b3] (Xenon)
Creating a new mesh network
$ particle mesh create my_network argon1 Enter a password for the new network [input is hidden] Confirm the password [input is hidden] Done! The device will be registered in the network once it is connected to the cloud.
In the above example,
argon1 is a claimed device which was configured via the mobile app. The device is connected to the host computer via USB.
Adding a device to a network
$ particle mesh add 461d5ab513f91475c636b0b3 argon1 Enter the network password [input is hidden] Done! The device should now connect to the cloud.
This command adds a device with the ID
461d5ab513f91475c636b0b3 to the current network of
argon1. The CLI will automatically claim the newly added device if necessary.
Getting the list of mesh networks
$ particle mesh list my_network devices: argon1 [b43aee28c3b1e2a1a0c71e43] (Argon) xenon1 [461d5ab513f91475c636b0b3] (Xenon)
Removing a device from its current network
$ particle mesh remove xenon1 Are you sure you want to remove this device from the network? Yes Done.
Any feedback is welcomed!