Looking for the device-id for the new 1030 plus. I use to get the definitive listing in devices.xml in the bin directory of the SDK. Where is this info located now?
Thanks!
Looking for the device-id for the new 1030 plus. I use to get the definitive listing in devices.xml in the bin directory of the SDK. Where is this info located now?
Thanks!
I've been working on a Google Sheet with all of the various Connect IQ device specifications and details.
I'm having trouble sharing it in a collaborative fashion but here's a viewable link in the…
You also may want to look in this thread, where Brandon mentions doing something related in the SDK manager, since the SDK is now independent of devices.
If you use jq (for Mac, Linux or Windows), you can massage this data any way you want. (The device ID is also in compiler.json, as well as in the directory name).
e.g. Using bash in WSL (Ubuntu) under…
If you use jq (for Mac, Linux or Windows), you can massage this data any way you want. (The device ID is also in compiler.json, as well as in the directory name).
e.g. Using bash in WSL (Ubuntu) under Windows 10, or Linux, or Mac OS (other Unix-like shells should work, too):
(See below for Windows Powershell example)
bash cd PATH_TO_DEVICES jq '{ deviceId, displayName }' */compiler.json | jq --slurp > devices.json
This produces JSON output which looks like:
[ { "deviceId": "approachs60", "displayName": "Approach® S60" }, { "deviceId": "approachs62", "displayName": "Approach® S62" }, ...
You can use more complex jq expressions to extract any information you want (and output it in any textual format you want, including CSV.)
And of course you could use a similar approach to combine *everything* into one JSON file, if that's what you really want:
jq --slurp '.' */compiler.json > devices.json
More examples:
- Include app memory sizes (bash):
jq '{ deviceId, displayName, appTypes }' */compiler.json | jq --slurp > devices.json
- Include app memory sizes (Windows Powershell)
jq '{ deviceId, displayName, appTypes }' $(ls *\compiler.json) | jq --slurp > devices.json