Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

particle firmware-version command #95

Closed
joegoggins opened this issue Aug 19, 2015 · 7 comments
Closed

particle firmware-version command #95

joegoggins opened this issue Aug 19, 2015 · 7 comments

Comments

@joegoggins
Copy link
Contributor

On the latest firmware (0.4.4), if you type "v" over serial to a Photon, you'll get something like like: "System Firmware: 0.4.4", it would be great to encapsulate this via the CLI with command like particle firmware-version.

Additionally, if you type "s" over serial to a Photon, you'll get a bunch of .json illustrating the detailed versions and dependencies information. It would be cool to expose this detailed information via a --details switch to the particle firmware-version command as pretty json. This switch would also make a reference to the documentation that helps decypher this detailed info.

This feature enhancement is related to #85, I'd vote to build this one first, and then generalize it later to accommodate to the other broader particle serial terminal feature proposal.

@kennethlimcp
Copy link
Contributor

@joegoggins suggesting particle device version with alias particle device v for this under the verb device command. Sounds good?

@dmiddlecamp
Copy link
Contributor

can we just include this as part of identify ?

@kennethlimcp
Copy link
Contributor

particle identify? Hmmm... How should we format all of them properly as one data set then? JSON?

@dmiddlecamp
Copy link
Contributor

nah, just pretty output, for example:

Your DeviceID is: abc123
Your system firmware version is: 0.4.4

@kennethlimcp
Copy link
Contributor

But s is not pretty... ^^ settles i and v

I also need to find out what output returns when you hit v on older system firmware since that is only introduced in.... 0.4.4

@dmiddlecamp
Copy link
Contributor

I imagine we'll be adding 'system-firmware version' to the device attributes endpoint on the API in the next sprint or two, as well as the raw version info for the system-parts / platforms. I think that will help parse the module json client-side if needed as well.

@kennethlimcp
Copy link
Contributor

We should get that info off the device as much as possible for accuracy? Like i did particle update and i want to check immediately so might be good to just pull off serial instead of relying on cloud info.

Also, I want to know my current device info when working offline without a ☁️ so it should all be pulled from device

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants