EasyManua.ls Logo

Digi IX20 - Page 816

Digi IX20
1188 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Applications Develop Python applications
IX20 User Guide
816
Depending on your device configuration, you may be presented with an Access
selection menu. Type shell to access the device shell.
ii. Typethe following at the shell prompt:
# python /etc/config/scripts/showsystem.py &
#
iii. Exit the shell:
# exit
4. In Remote Manager, click Documentation > API Explorer.
5. Select the devicesto use as the SCI targest:
a. Click SCI Targets.
b. Click Add Targets.
c. Enter or select the device IDof one of the devices.
d. Click Add.
e. Enter or select the device IDof the second device and click Add.
f. Click OK.
6. Click Examples> SCI >Data Service > Send Request.
Codesimilar to the following will be displayed in the HTTPmessage body text box:
<sci_request version="1.0">
<data_service>
<targets>
<device id="00000000-00000000-0000FFFF-A83CF6A3"/>
<device id="00000000-00000000-0000FFFF-485740BC"/>
</targets>
<requests>
<device_request target_name="myTarget">
my payload string
</device_request>
</requests>
</data_service>
</sci_request>
7. For the device_request element, replace the value of target_name with showSystem. This
matches the target parameter of the device_request.register function in the showsystem.py
application.
<device_request target_name="showSystem">
8. Click Send.
You should receive a response similar to the following:
<sci_reply version="1.0">
<data_service>
<device id="00000000-00000000-0000FFFF-A83CF6A3"/>
<requests>
<device_request target_name="showSystem" status="0">Model

Table of Contents