404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.144.128.235: ~ $
**To invoke a device method on a device**

The following ``invoke-device-method`` example invokes the specified method on a device. ::

    aws iot1click-devices invoke-device-method \
        --cli-input-json file://invoke-device-method.json

Contents of ``invoke-device-method.json``::

   {
       "DeviceId": "G030PM0123456789",
       "DeviceMethod": {
           "DeviceType": "device",
           "MethodName": "getDeviceHealthParameters"
       }
   }

Output::

    {
        "DeviceMethodResponse": "{\"remainingLife\": 99.8}"
    }

For more information, see `Using AWS IoT 1-Click with the AWS CLI <https://docs.aws.amazon.com/iot-1-click/latest/developerguide/1click-cli.html>`__ in the *AWS IoT 1-Click Developer Guide*.

Filemanager

Name Type Size Permission Actions
claim-devices-by-claim-code.rst File 574 B 0644
describe-device.rst File 926 B 0644
finalize-device-claim.rst File 574 B 0644
get-device-methods.rst File 905 B 0644
initiate-device-claim.rst File 582 B 0644
invoke-device-method.rst File 735 B 0644
list-device-events.rst File 1.46 KB 0644
list-devices.rst File 817 B 0644
list-tags-for-resource.rst File 593 B 0644
tag-resource.rst File 709 B 0644
unclaim-device.rst File 496 B 0644
untag-resource.rst File 599 B 0644
update-device-state.rst File 478 B 0644