Activate and deactivate the USB port
Activate and deactivate the USB port. When deactivated, prevents any kind of action using the USB port. The HTTP method used is POST and the contentType is application/json.
POST /set_configuration.fcgi
Parameters
- The parameter will be a JSON Object corresponding to the settings parameters you want to change.
Response
- The response will be a JSON Object corresponding to the modified setting parameters.
Example request
Enables the USB port:
$.ajax({
url: "/set_configuration.fcgi?session=" + session,
type: 'POST',
contentType: 'application/json',
data: JSON.stringify({
general: {"usb_port_enabled": "1"}
})
});
Disables the USB port:
$.ajax({
url: "/set_configuration.fcgi?session=" + session,
type: 'POST',
contentType: 'application/json',
data: JSON.stringify({
general: {"usb_port_enabled": "0"}
})
});