Lantronix 900-691-R Network Card User Manual


 
Appendix B: WebAPI
xPico® Wi-Fi® Embedded Device Server User Guide 101
optionalBoolNeedSecret: To retrieve the original value for hidden configuration, set this to "true".
CURL example:
curl -u admin:PASSWORD http://172.19.100.125/export/config -X POST
curl -u admin:PASSWORD http://172.19.100.125/export/config -X POST -d
"optionalGroupList=Interface:wlan0"
Javascript example:
myXmlhttprequest.open(
"POST",
"/export/config",
true
);
request.send(
"optionalGroupList= Interface:wlan0"
);
Take Status Action
An HTTP POST request can be sent to the device to take a status action.
Protocol: HTTP
Method: Post
URL: http://<hostname>/action/status
Parameters:
group: Required. The status group where action is defined.
optionalGroupInstance: Optional instance of status group.
optionalItem: Optional item of status group where action is defined.
optionalItemInstance: Optional instance of status item.
action: Required. The action to be taken.
CURL example:
curl -u admin:PASSWORD http://172.19.100.125/action/status -X POST -d
"group=Interface&optionalGroupInstance=wlan0&action=Renew"
Javascript example:
myXmlhttprequest.open(
"POST",
"/action/status",
true
);
request.send(
" group=Interface&optionalGroupInstance=wlan0&action=Renew "
);