Ejemplo n.º 1
0
        private String GetCannedForGarmin(Logictracker.Types.BusinessObjects.Messages.Mensaje[] messagesParameters, UInt16 setFmiPacketId, UInt16 deleteFmiPacketId)
        {
            var config = new StringBuilder();

            foreach (Logictracker.Types.BusinessObjects.Messages.Mensaje m in messagesParameters)
            {
                int cod = Convert.ToInt32(m.Codigo);
                config.Append(GarminFmi.EncodeSetCanned(cod, "code=" + cod + ";" + m.Texto, setFmiPacketId).ToTraxFM(this, false));
            }
            return(config.ToString());
        }
Ejemplo n.º 2
0
        public bool SetCannedResponse(ulong messageId, int codeResponseId, String response, int revision)
        {
            var md = GetMessagingDevice();

            switch (md)
            {
            case MessagingDevice.Garmin:
                var cmd = GarminFmi.EncodeSetCanned(codeResponseId, response, FmiPacketId.ScSetCannedResponse).ToTraxFM(this);
                SendMessages(new[] { cmd }, md);
                break;

            case MessagingDevice.Mpx01:
                break;
            }
            return(true);
        }