예제 #1
0
 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
 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
    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
    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
 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)