+

Search Tips   |   Advanced Search

Create and delete device classes

We can create and delete device classes using the XML configuration interface.


Create a device class

<?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.5.0.xsd">

     <portal action="locate">
        <device-class action="update" 
        name="smartphone" 
        uniquename="wps.deviceclass.smartphone" />
     </portal>  

</request>


Delete a device class

<?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.5.0.xsd">

    <portal action="locate">
        <device-class action="delete" 
        uniquename="wps.deviceclass.smartphone"/>           
    </portal>

</request>


Parent Device classes

Previous topic: mvc:URI scheme

Next topic: Assigning device classes