-
Notifications
You must be signed in to change notification settings - Fork 179
Introduce device-management/dev-mgmt/dm subcommand #735
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
Introduce device-management/dev-mgmt/dm subcommand #735
Conversation
mbed/mbed.py
Outdated
dict(name='--source', action='append', help='Source directory. Default: . (current dir)'), | ||
help='device management supcommand', | ||
hidden_aliases=['dev-mgmt', 'dm'], | ||
description=("Manage Device with Palion")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty sure Palion
should be Pelion
😄
mbed/mbed.py
Outdated
|
||
if build: | ||
build_path = build | ||
elif not build and target and toolchain: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll nit. I understand this as (not A) and (B) and (C), but might be misunderstood as not (A and B and C).
Might make it easier to understand if parentheses were explicit.
@@ -1575,6 +1575,10 @@ def get_env(self): | |||
for c in compilers: | |||
if self.get_cfg(c+'_PATH'): | |||
env['MBED_'+c+'_PATH'] = self.get_cfg(c+'_PATH') | |||
config_options = ['COLOR', 'CLOUD_SDK_API_KEY', 'CLOUD_SDK_HOST'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
COLOR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah MBED_COLOR
makes errors stick out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am appeased
I think the "help" need a bit wider print out:
device-management seems to be one char too long for nice printing. |
Is there a prerequisite to use the I'm testing this PR with ARMmbed/mbed-os/pull/7844 and following steps described in ARMmbed/mbed-os-5-docs/pull/681
Output:
|
@MarceloSalazar Thanks for the bug report. I need to update the default for |
@MarceloSalazar I updated the mbed-os PR to make HTTPS the default. |
Turns out that was better done here, so it's done here. |
Thanks for the fix @theotherjimmy . I've managed to make a bit of progress. What's the expected input for the company domain and model parameters? I'm not able to find entries that work with See output:
|
@MarceloSalazar |
@theotherjimmy good, it works now as expected. A minor concern is that since you cannot get the usage information for manifest-tool with Is this expected behaviour and should this be mentioned in the documentation? |
@lorjala That's true for all subcommands that do something other than repo management. |
mbed.py device-management init -d "test.arm.com" -m "model-name" -a fails with -m/--model-name is required mbed.py device-management init -d "test.arm.com" --model-name "model-name" -a mbed-os/tools/device_management.py", line 86, in inner
usage: device_management.py init [-h] [-c CERTIFICATE] [-k PRIVATE_KEY] |
@theotherjimmy is there a flag to prevent downloading the certificate? I think this should be configuration option, (off by default). |
@teetak01 That's actually controlled by mbed-os at this time. I can make it "opt-out". |
This subcommand will be used for device management.
I will submit the companion PR to mbed-os very soon.