public void SendGotBoxMsg() { GamaReponseMessage msg = new GamaReponseMessage(connector.clientId, "GamaAgent", "Message from Unity", DateTime.Now.ToString()); string message = MsgSerialization.ToXML(msg); connector.Publish("replay", message); }
public void sendGotBoxMsg() { GamaReponseMessage msg = new GamaReponseMessage(clientId, "GamaAgent", "Got a Box notification", DateTime.Now.ToString()); string message = MsgSerialization.msgSerialization(msg); client.Publish("Gama", System.Text.Encoding.UTF8.GetBytes(message), MqttMsgBase.QOS_LEVEL_EXACTLY_ONCE, true); //client.Publish ("Gama", System.Text.Encoding.UTF8.GetBytes ("Good, Another box2")); }