Create and delete device classes
We can create and delete device classes using xmlaccess.sh.
Create a device class
The following example creates a device class with the name smartphone and the unique name wps.deviceclass.smartphone.
<?xml version="1.0" encoding="UTF-8"?> <request type="update" create-oids="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_8.0.xsd"> <portal action="locate"> <device-class action="update" name="smartphone" uniquename="wps.deviceclass.smartphone" /> </portal> </request>
Delete a device class
The following example deletes the device class with the unique name wps.deviceclass.smartphone.
<?xml version="1.0" encoding="UTF-8"?> <request type="update" create-oids="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="PortalConfig_8.0.xsd"> <portal action="locate"> <device-class action="delete" uniquename="wps.deviceclass.smartphone"/> </portal> </request>
Parent: Device classes
Next: Assigning device classes