You can write HTTP clients that remotely manage all your devices. Examples of such clients include web pages and programs written in a language such as Python or Java.
These clients send requests to the Remote Manager server using standard HTTP requests to retrieve data and remotely control your devices, as you can do from the Remote Manager web interface.
These web services allow you to schedule operations to devices en masse:
Monitor all your devices. Remotely retrieve and visualize data to determine your devices' health.
Update the device firmware. Update the firmware of one or more devices at the same time.
Access the file system. Interact with files on your devices and list, upload, download, or remove files.
Manage all your devices. Remotely configure and send specific requests to trigger processes in your devices.
A good starting point is the API Explorer. This tool allows you to run any web services request and view the response data, as well as export code as Python, Java, Ruby, Perl, or C## code.
For example, you can automate the firmware using these HTTP requests. To do so, follow these steps:
Log in to your Remote Manager account (https://remotemanager.digi.com).
Select API Explorer on the left bar.
Select Examples > SCI > Firmware > Update firmware. Remote Manager automatically creates the necessary code.
Replace the "device id" value with the ID of your device.
Edit the code block with the following changes:
filenameattribute to the
<update_firmware>element. Its value should be either
manifest.txtfor fragmented firmware updates or any name ending in
*.swufor full package updates.
<data>[Base 64 encoded data]</data>. You must encode the
manifest.txtfile or the
*.swupackage you want to install in Base 64 and put it within the
<sci_request version="1.0"> <update_firmware filename="[manifest.txt|update_package.swu]"> <targets> <device id="XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX"/> </targets> <data>[Base 64 encoded data]</data> </update_firmware> </sci_request>
You can test the firmware or application update by clicking Send.