The two examples below use different methods to utilize Spectrum’s Web Services to toggle maintenance mode on a model. The first is a command line implementation. In this case, cURL is used as the command line tool:
To put a device into maintenance mode:
curl.exe -i -H "application/xml" -X PUT -u username:password “http://localhost/spectrum/restful/model/0xa0000fa0?attr=0x1295d&val=false”
To take a device out of maintenance mode:
curl.exe -i -H "application/xml" -X PUT -u username:password "http://localhost/spectrum/restful/model/0xa0000fa0?attr=0x1295d&val=true"
*Both commands above are one line each
The second example uses the RESTClient:
