The information in this document is for informational purposes only. Please inform HMS Industrial Networks of any
inaccuracies or omissions found in this document. HMS Industrial Networks disclaims any responsibility or liability
for any errors that may appear in this document.
HMS Industrial Networks reserves the right to modify its products in line with its policy of continuous product
development. The information in this document shall therefore not be construed as a commitment on the part of
HMS Industrial Networks and is subject to change without notice. HMS Industrial Networks makes no commitment
to update or keep current the information in this document.
The data, examples and illustrations found in this document are included for illustrative purposes and are only
intended to help improve understanding of the functionality and handling of the product. In view of the wide range
of possible applications of the product, and because of the many variables and requirements associated with any
particular implementation, HMS Industrial Networks cannot assume responsibility or liability for actual use based on
the data, examples or illustrations included in this document nor for any damages incurred during installation of the
product. Those responsible for the use of the product must acquire sufficient knowledge in order to ensure that the
product is used correctly in their specific application and that the application meets all performance and safety
requirements including any applicable laws, regulations, codes and standards. Further, HMS Industrial Networks will
under no circumstances assume liability or responsibility for any problems that may arise as a result from the use of
undocumented features or functional side effects found outside the documented scope of the product. The effects
caused by any direct or indirect use of such aspects of the product are undefined and may include e.g. compatibility
issues and stability issues.
This document describes the available REST commands for Wireless Bolt IoT. The reader of this
document is expected to be familiar with the product and have a good knowledge of wireless
communication and network technology.
For additional related documentation, file downloads and technical support, please visit the
Anybus support website at www.anybus.com/support.
1.2Trademarks
Anybus®is a registered trademark of HMS Industrial Networks. All other trademarks mentioned
in this document are the property of their respective holders.
Anybus®Wireless Bolt IoT™Reference Guide
SCM-1202-156 1.0 en-US
Authentication4 (14)
2Authentication
All http requests to the REST API need to be authenticated using the "Basic HTTP Authentication
Scheme" (RFC7617).
Basic auth is done by adding a header-parameter to the HTTP-request:
Authorization: Basic <Base64 encoding of user-id:password>
The user-id is always "admin" and the password is the web password currently in use, either the
default password shipped with the product, or if it has been changed, the new password.
Example:
Query:
GET http://192.168.0.98/cgi-bin/log.cgi
Response:
Oct 9 10:03:18 Legato: INFO | Version: 1.00.18-dev
Oct 9 10:03:18 Legato: INFO | Boot reason: Power-on
Jan 6 00:00:23 Legato: INFO | eth0 IP address: 192.168.0.98 - netmask:
255.255.254.0
Jan 6 00:00:23 Legato: INFO | eth0 DHCP server: on
Jan 6 00:00:23 Legato: INFO | APN auth is: off
Jan 6 00:00:23 Legato: INFO | DHCP range start - stop: 192.168.0.100 -
192.168.0.200
Jan 6 00:00:24 Legato: INFO | IP address/netmask set to: 192.168.0.98/
255.255.254.0
Jan 6 00:00:24 Legato: INFO | Setting no auth for APN
Jan 6 00:00:24 Legato: INFO | Setting configured RAT: "gsm": 0x01
Jan 6 00:00:24 Legato: INFO | Data connection requested
Oct 17 12:02:43 Legato: INFO | Data connected, interface 'rmnet_data0'
Oct 17 12:02:43 Legato: INFO | Restarting DHCP/DNS services
3.8SysLogInfo
Create and return an archive of all system logs.
3.8.1Syntax
GET <target_ip>/cgi-bin/sysloginfo.cgi
3.8.2Query Parameters
None
3.8.3Examples
Query:
GET http://192.168.0.98/cgi-bin/sysloginfo.cgi
Response:
<octet stream containing the archive>
3.9Reboot
Reboot the device.
Anybus®Wireless Bolt IoT™Reference Guide
SCM-1202-156 1.0 en-US
Public REST Commands11 (14)
3.9.1Syntax
GET <target_ip>/cgi-bin/reboot.cgi
3.9.2Query Parameters
None
3.9.3Return Values
{"success":<value>}
ValueDescription
true
falseRequest failed
Request completed successfully.
3.9.4Examples
Query:
GET http://192.168.0.98/cgi-bin/reboot.cgi
Response:
{"success":true}
3.10Ultra Low Power Mode
Put the device in Ultra Low Power Mode for a specified duration.
3.10.1Syntax
GET <target_ip>/cgi-bin/ulpm.cgi?duration=<time in seconds>
3.10.2Query Parameters
Name
durationNumber of seconds (60-86400) to remain in ULPM before
3.10.3Return Values
{"success":<value>,"message":"<additional info>"}
ValueDescription
true
falseRequest failed or validation error
3.10.4Examples
Description
waking up again
Request completed successfully.
Enter ULPM and sleep for 300 seconds (5 minutes):
Query:
GET http://192.168.0.98/cgi-bin/ulpm.cgi?duration=300
Response:
{"success":true,"message":"sleeping for 300 s"}
Anybus®Wireless Bolt IoT™Reference Guide
SCM-1202-156 1.0 en-US
Public REST Commands12 (14)
3.11Firmware Update
Update the device firmware.
3.11.1Syntax
POST <target_ip>/cgi-bin/update.cgi
3.11.2Query Parameters
None
3.11.3Post Data
The contents of a firmware (.fws) file.
3.11.4Return Values
Raw HTML output of the firmware update process. Searching this for the strings "SUCCESS" or
"FAILED" will give the result.
3.11.5Examples
Query:
POST http://192.168.0.98/cgi-bin/update.cgi
Response:
Trying to update...
Unpacking: 0%
FAILED: error code 2
3.12DHCP Leases
Return a list of active DHCP leases.
3.12.1Syntax
GET <target_ip>/cgi-bin/dhcpleases.cgi
3.12.2Query Parameters
None
3.13Return Values
Raw text output with DHCP leases in dnsmasq.leases format.
3.13.1Examples
Query:
GET http://192.168.0.98/cgi-bin/dhcpleases.cgi
Response:
1573275080 00:e0:4c:34:92:e9 192.168.0.168 LT-5Q1XWT2 01:00:
e0:4c:34:92:e9