Tutorial: Manage your device's resources in Device Management Portal
This section explains how you can see your device's available resources and perform common read and write operations using Device Management Portal.
Note: this tutorial assumes that you have your device successfully connected to Device Management. If not, please read the tutorials if you haven't connected your device yet.
Before you begin, please log in to your account on Device Management Portal.
View device details
The Device directory page in the portal shows device information.
To view details of your device, click your device's Device ID. This opens an information pane where you can see details such as Name, Description, Date created, Date bootstrapped and edit some of the values:
To edit device name or description, click Pen button (Edit).
To add custom attributes, which you can use to filter your devices, open the attributes tab and click Add. You can edit or delete attributes by ticking the checkbox for an attribute and clicking Action to select the desired action.
To view the resources currently exposed from this device, open the Resources tab.
To view the logs for your device, open the Events log tab.
Read from and write to the exposed resources on the device
You can read and write exposed device resources in the portal. Some exposed resources are writeable and some are read-only and observable.
To view an observable resource, do the following:
- Open the Device directory tab and click your device's ID. The device's information is displayed in a new pane.
- Select the Resources tab. The list of resources shows whether a resource is observable or not.
- Click the name of a resource. This opens a new information window. For observable resources, the window displays the latest value.
The writeable resource in this example is
/5001/0/1. The steps are the same as for Read. However, you can edit the value of the resource.
Note: Your device will reject an attempt to write into a non-writable resource, in which case the new value will not be written or reflected.