Ejemplo n.º 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) + "\""
Ejemplo n.º 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) + "\"")
Ejemplo n.º 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) + "\""
Ejemplo n.º 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) + "\""     
Ejemplo n.º 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) + '"'
Ejemplo n.º 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
Ejemplo n.º 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) + "\""     
Ejemplo n.º 8
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
Ejemplo n.º 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
Ejemplo n.º 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)
Ejemplo n.º 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)
Ejemplo n.º 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)