Example: DRM API to Change the DRM Name and Primary Time Server on XBee Gateways (formerly ConnectPort X2e)

Example: DRM API to Change the DRM Name and Primary Time Server on XBee Gateways (formerly ConnectPort X2e)


The following example shows how to send an API from Digi's Device Cloud to change the Device Cloud name and SNTP time servers on devices connected to the Device Cloud.

Login to your DRM account and select API Explorer.  

Select the target gateways by clicking on the Targets button.  From the drop down, select each gateway followed by Submit

Next, click on the Examples menu and select SCI > RCI > Set device setting:

Paste in the following to configure the current valid time server and Device Cloud name in between the <set_setting> and </set_setting> fields:

      <time_server>
       <enable>on</enable>
       <server>
        <name>time.devicecloud.com</name>
       </server>
     </time_server>
    <idigi>
       <server>
        <name>my.devicecloud.com</name>
      </server>
   </idigi>


 


Click Send to send the command to the selected targets.

To confirm the settings applied without errors, click on the POST /ws/sci entry on the right under Web Services Responses. You should see a response similar to the following indicating success:

User-added image

Last updated: Dec 13, 2024

Filed Under

Gateways

Recently Viewed

No recently viewed articles

Did you find this article helpful?