Exemplo n.º 1
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     self.state['capabilities'].update({
         'on': {
             'type': 'boolean',
             'access': 'rw'
         },
         'manufacturer': {
             'type': 'string'
         }
     })
     self.state.update({'on': True, 'manufacturer': 'Bulbs, inc.'})
Exemplo n.º 2
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     threading.Thread.__init__(self)
Exemplo n.º 3
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     self.state['capabilities'].update({'open': {'type': 'boolean'}})
     self.state.update({'open': True})
Exemplo n.º 4
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     self.state['capabilities'].update({ 't': { 'type': 'float' }})
     self.state.update({'t': 25.0})
Exemplo n.º 5
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     self.state['capabilities'].update({'t': {'type': 'float'}})
     self.state.update({'t': 25.0})
Exemplo n.º 6
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     self.state['capabilities'].update({ 'open': { 'type': 'boolean' }})
     self.state.update({'open': True})        
Exemplo n.º 7
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     threading.Thread.__init__(self)
Exemplo n.º 8
0
 def __init__(self, urn, conn):
     Node.__init__(self, urn, conn)
     self.state['capabilities'].update({ 'on': { 'type': 'boolean', 'access':'rw'}, 'manufacturer': { 'type': 'string'}})
     self.state.update({'on': True, 'manufacturer': 'Bulbs, inc.'})