Ejemplo n.º 1
0
 public void write()
 {
     messageData.Add(header.encode());
     writeMsgLength();
     writeMessage();
     byte[] data = messageData.ToArray();
     try
     {
         mqttConnection.sendMessage(data);
     }
     catch
     {
         throw;
     }
 }