Skip to content

Returns a parameter that does not exist #2706

Closed
@radianceltd

Description

@radianceltd

@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

Metadata

Metadata

Assignees

Labels

type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions