View this PageEdit this PageAttachments to this PageHistory of this PageHomeRecent ChangesSearch the SwikiHelp Guide

upnp-light.xml


   0: <?xml version="1.0"?>
   1: <device xmlns="//edu.gatech.cc.realjin.umiddle.usdl"
   2:                 xmlns:upnp="//edu.gatech.cc.realjin.umiddle.upnp"
   3:                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   4:                 xsi:schemaLocation="http://www.ht.sfc.keio.ac.jp/~jin/umiddle usdl.xsd http://www.ht.sfc.keio.ac.jp/~jin/umiddle upnp.xsd">
   5:		
   6:     <name>Light</name>
   7:     <description>UPnP light device</description>
   8:     <map>
   9:         <upnp:device type="urn:schemas-upnp-org:device:light:1"/>
  10:     </map>
  11:
  12:     <services>
  13:         <service>
  14:             <name>Power</name>
  15:             <description>Power control service</description>
  16:             <map>
  17:                 <upnp:service type="urn:schemas-upnp-org:service:power:1"/>
  18:             </map>
  19:
  20:             <ports>
  21:                 <port portType="3" dataType="event/*">
  22:                     <name>on</name>
  23:                     <description>turns on this light</description>
  24:                     <map>
  25:                         <upnp:input action="SetPower">
  26:                             <upnp:argument name="Power">1</upnp:argument>
  27:                         </upnp:input>
  28:                     </map>
  29:                 </port>
  30:                 <port portType="3" dataType="event/*">
  31:                     <name>off</name>
  32:                     <description>turns off this light</description>
  33:                     <map>
  34:                         <upnp:input action="SetPower">
  35:                             <upnp:argument name="Power">0</upnp:argument>
  36:                         </upnp:input>
  37:                     </map>
  38:                 </port>
  39:                 <port portType="4" dataType="event/*">
  40:                     <name>switched</name>
  41:                     <description>fires an event when power is switched on or off</description>
  42:                     <map>
  43:                         <upnp:output>
  44:                             <upnp:state name="Power">[10]</upnp:state>
  45:                         </upnp:output>
  46:                     </map>
  47:                 </port>
  48:             </ports>
  49:         </service>
  50:     </services>
  51: </device>


Links to this Page