Lantronix 900-691-R Network Card User Manual


 
xPico® Wi-Fi® Embedded Device Server User Guide 100
Appendix B: WebAPI
WebAPI is a cloud function API allowing access to configuration and status information of xPico
Wi-Fi embedded device server through standard HTTP request.
Export Status Group
An HTTP POST request can be sent to the device to retrieve status information.
Protocol: HTTP
Method: Post
URL: http://<hostname>/export/status
Parameters:
optionalLine: Optional line index for line oriented XML groups
optionalGroupList: Optional list of XML groups separated by semicolon. If omitted, all status
groups will be returned.
CURL example:
curl -u admin:PASSWORD http://172.19.100.125/export/status -X POST
curl -u admin:PASSWORD http://172.19.100.125/export/status -X POST -d
"optionalGroupList=Device"
Javascript example:
myXmlhttprequest.open(
"POST",
"/export/status",
true
);
request.send(
"optionalGroupList=Device"
);
Export Configuration Group
An HTTP POST request can be sent to the device to retrieve configuration information.
Protocol: HTTP
Method: Post
URL: http://<hostname>/export/config
Parameters:
optionalLine: Optional line index for line oriented XML groups
optionalGroupList: Optional list of XML groups separated by semicolon. If omitted, all
configuration groups will be returned.