コード例 #1
0
ファイル: swapmsg.py プロジェクト: dchaves/openchronos
 def moteStateChanged(self, mote):
     """
     Mote state changed
     
     'mote'  Mote having changed
     """
     print "Mote with address " + str(mote.address) + " switched to \"" + SwapState.toString(mote.state) + "\""
コード例 #2
0
 def moteStateChanged(self, mote):
     """
     Mote state changed
     
     @param mote: Mote having changed
     """
     self.log("Mote with address " + str(mote.address) + " switched to \"" + \
         SwapState.toString(mote.state) + "\"")
コード例 #3
0
 def moteStateChanged(self, mote):
     """
     Mote state changed
     
     @param mote: Mote having changed
     """
     if self._print_swap == True:
         print "Mote with address " + str(mote.address) + " switched to \"" + \
         SwapState.toString(mote.state) + "\""
コード例 #4
0
ファイル: swapmanager.py プロジェクト: JoeSc/python_tools
 def moteStateChanged(self, mote):
     """
     Mote state changed
     
     @param mote: Mote having changed
     """
     if self._print_swap == True:
         print "Mote with address " + str(mote.address) + " switched to \"" + \
         SwapState.toString(mote.state) + "\""     
コード例 #5
0
 def moteStateChanged(self, mote):
     """
     Mote state changed
     
     @param mote: Mote having changed
     ******************************
     need to add shit here, needs to send shit to the server
     """
     if self._print_swap == True:
         print "Mote with address " + str(mote.address) + ' switched to "' + SwapState.toString(mote.state) + '"'
コード例 #6
0
ファイル: __init__.py プロジェクト: eagleamon/alfred
    def moteStateChanged(self, mote):
        """
        Mote state changed

        'mote'  Mote having changed
        """
        self.log.debug("Mote with address %s switched to '%s'" % (mote.address, SwapState.toString(mote.state)))

        # SYNC mode entered?
        if mote.state == SwapState.SYNC:
            self._addrInSyncMode = mote.address
コード例 #7
0
 def moteStateChanged(self, mote):
     """
     Mote state changed
     
     @param mote: Mote having changed
     ******************************
     need to add shit here, needs to send shit to the server
     """
     if self._print_swap == True:
         print "Mote with address " + str(mote.address) + " switched to \"" + \
         SwapState.toString(mote.state) + "\""     
コード例 #8
0
ファイル: __init__.py プロジェクト: wookiesh/alfred
    def moteStateChanged(self, mote):
        """
        Mote state changed

        'mote'  Mote having changed
        """
        self.log.debug("Mote with address %s switched to '%s'" %
                       (mote.address, SwapState.toString(mote.state)))

        # SYNC mode entered?
        if mote.state == SwapState.SYNC:
            self._addrInSyncMode = mote.address
コード例 #9
0
 def moteStateChanged(self, mote):
     """
     Mote state changed
     
     'mote'  Mote having changed
     """
     if self._printSWAP == True:
         print "Mote with address " + str(mote.address) + " switched to \"" + \
         SwapState.toString(mote.state) + "\""
     # SYNC mode entered?
     if mote.state == SwapState.SYNC:
         self._addrInSyncMode = mote.address
コード例 #10
0
ファイル: SwapManager.py プロジェクト: madeinoz67/panstamp
    def moteStateChanged(self, mote):
        """
        Mote state changed
        
        'mote' Mote object
        """
        if self.dmtframe is not None:
            # Display event
            evntext = "Mote with address " + str(mote.address) + " switched to \"" + \
                SwapState.toString(mote.state) + "\""
            wx.CallAfter(pub.sendMessage, "add_event", evntext)

            # SYNC mode entered?
            if mote.state == SwapState.SYNC:
                wx.CallAfter(pub.sendMessage, "sync_received", mote)
コード例 #11
0
    def moteStateChanged(self, mote):
        """
        Mote state changed
        
        'mote' Mote object
        """
        if self.dmtframe is not None:
            # Display event
            evntext = "Mote with address " + str(mote.address) + " switched to \"" + \
                SwapState.toString(mote.state) + "\""
            wx.CallAfter(pub.sendMessage, "add_event", msg=evntext)

            # SYNC mode entered?
            if mote.state == SwapState.SYNC:
                wx.CallAfter(pub.sendMessage, "sync_received", msg=mote)
コード例 #12
0
ファイル: SwapManager.py プロジェクト: JoeSc/python_tools
 def moteStateChanged(self, mote):
     """
     Mote state changed
     
     'mote' Mote object
     """
     if self.dmtframe is not None:
         # Display event
         evntext = "Mote with address " + str(mote.address) + " switched to \"" + \
             SwapState.toString(mote.state) + "\""
         WxComms.send_message("add_event", evntext)
         
         # SYNC mode entered?
         if mote.state == SwapState.SYNC:
             WxComms.send_message("sync_received", mote)