particle-iot / particle-cli

Command Line Interface for Particle Cloud and devices
Apache License 2.0
212 stars 92 forks source link

Get network configuration of a device #733

Closed keeramis closed 6 months ago

keeramis commented 6 months ago

Description

Implements a command which resembles the linux ifconfig command that shows information about the network interfaces and their states

This is only possible on Gen2 because the USB control requests to request this information are guarded by HAL_PLATFORM_IFAPI which is enabled only for Gen3 and above.

How to Test

Check out this branch and from the particle-cli root directory, run npm start -- usb network-interfaces

  1. Connect a single device
  2. Or Connect muitple devices

Expected Outcome

Screenshot 2024-05-14 at 12 27 31 PM

Related Issues / Discussions

https://github.com/particle-iot/particle-usb/pull/102

Completeness

keeramis commented 6 months ago

@monkbroc updated the new output format when there is an error.