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

Returns a parameter that does not exist #2706

Closed
radianceltd opened this issue Jan 10, 2020 · 2 comments
Closed

Returns a parameter that does not exist #2706

radianceltd opened this issue Jan 10, 2020 · 2 comments
Assignees
Labels
type: question Request for information or clarification. Not an issue.

Comments

@radianceltd
Copy link

@gguuss

I found that many parameters in demo do not exist

 # device.gateway_config

    if device.credentials is not None:
        for credential in device.credentials:
            keyinfo = credential.public_key
            print('\tcertificate: \n{}'.format(keyinfo.key))

            if keyinfo.format == 4:
                keyformat = 'ES256_X509_PEM'
            elif keyinfo.format == 3:
                keyformat = 'RSA_PEM'
            elif keyinfo.format == 2:
                keyformat = 'ES256_PEM'
            elif keyinfo.format == 1:
                keyformat = 'RSA_X509_PEM'
            else:
                keyformat = 'UNSPECIFIED_PUBLIC_KEY_FORMAT'
            print('\tformat : {}'.format(keyformat))
            print('\texpiration: {}'.format(credential.expiration_time))

    print('Config:')
    print('\tdata: {}'.format(device.config.binary_data))
    print('\tversion: {}'.format(device.config.version))
    print('\tcloudUpdateTime: {}'.format(device.config.cloud_update_time))

    return device
    # [END iot_get_device]

device.config.binary_data and device.config.cloud_update_time Is a non-existent parameter

@busunkim96
Copy link
Contributor

@busunkim96 busunkim96 assigned gguuss and unassigned busunkim96 Jan 10, 2020
@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Jan 10, 2020
@leahecole leahecole added api: iot type: question Request for information or clarification. Not an issue. and removed triage me I really want to be triaged. labels Jan 10, 2020
@gguuss
Copy link
Contributor

gguuss commented Jan 10, 2020

Resolved in this PR

@gguuss gguuss closed this as completed Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

5 participants