def callback(self, msg):
     """ Forward message to serial device. """
     data_buffer = StringIO.StringIO()
     msg.serialize(data_buffer)
     # only send data if the other side is alive
     if self.parent.synced is not False:
         self.parent.send(self.id, data_buffer.getvalue())
 def callback(self, msg):
     """ Forward message to serial device. """
     data_buffer = StringIO.StringIO()
     msg.serialize(data_buffer)
     # only send data if the other side is alive
     if self.parent.synced is not False:
         self.parent.send(self.id, data_buffer.getvalue())
 def callback(self, msg):
     """ Forward message to serial device. """
     data_buffer = StringIO.StringIO()
     msg.serialize(data_buffer)
     self.parent.send(self.id, data_buffer.getvalue())
Exemple #4
0
 def callback(self, msg):
     """ Forward message to serial device. """
     data_buffer = StringIO.StringIO()
     msg.serialize(data_buffer)
     self.parent.send(self.id, data_buffer.getvalue())