Exemplo n.º 1
0
Arquivo: Drain.py Projeto: iplusu/sarp
 def __init__( self , app, spAddr, moteIF ) :
     if type(moteIF) == str :
         moteIF = Comm.openMoteIF(moteIF, app)
     drainObj = drain.Drain(spAddr, moteIF)
     drainConnectorObj = drain.DrainConnector(spAddr, moteIF)
     self.app = app #save for later use
     JavaInheritor.__init__(self, (drainObj, drainConnectorObj) )
Exemplo n.º 2
0
 def __init__( self , app, spAddr, moteIF ) :
     if type(moteIF) == str :
         moteIF = Comm.openMoteIF(moteIF, app)
     drainObj = drain.Drain(spAddr, moteIF)
     drainConnectorObj = drain.DrainConnector(spAddr, moteIF)
     self.app = app #save for later use
     JavaInheritor.__init__(self, (drainObj, drainConnectorObj) )
Exemplo n.º 3
0
Arquivo: Drip.py Projeto: iplusu/sarp
 def __init__( self , app, channel, moteIF ) :
     self.app = app
     if type(moteIF) == str :
         moteIF = Comm.openMoteIF(moteIF, app)
     dripObj = drip.Drip(channel, moteIF)
     JavaInheritor.__init__(self, (dripObj,) )
Exemplo n.º 4
0
 def __init__( self , app, channel, moteIF ) :
     self.app = app
     if type(moteIF) == str :
         moteIF = Comm.openMoteIF(moteIF, app)
     dripObj = drip.Drip(channel, moteIF)
     JavaInheritor.__init__(self, (dripObj,) )