示例#1
0
        private void SendMessages(String config, ulong messageId, String md)
        {
            if (string.IsNullOrEmpty(config))
            {
                return;
            }

            switch (md)
            {
            case MessagingDevice.Garmin:
                Fota.EnqueueGarmin(this, messageId, config);
                break;

            default:
                Fota.Enqueue(this, messageId, config);
                break;
            }

            /*            IMessage msg = null;
             *          SendPendingFota(ref msg);
             *          if (msg == null) return;
             *
             *          STrace.Debug(typeof (Parser).FullName, Id, String.Format("Enviando: {0}", msg.GetPendingAsString()));
             *          DataLinkLayer.SendMessage(Id, msg); */
        }
示例#2
0
        private void SendMessages(String config, ulong messageId, String md)
        {
            if (string.IsNullOrEmpty(config))
            {
                return;
            }

            switch (md)
            {
            default:
                Fota.Enqueue(this, messageId, config);
                break;
            }
        }
示例#3
0
文件: Parser.cs 项目: jesumarquez/lt
        private void SendMessages(String text, ulong sequence, ulong messageId, Boolean sendnowflag)
        {
            //STrace.Debug("", Id, "SendMessages did={0} msg={1}", Id, text);
            var msg = new UserMessage(Id, sequence).AddStringToSend(text);

            if (!sendnowflag)
            {
                Fota.Enqueue(this, messageId, text);
            }
            else
            {
                DataLinkLayer.SendMessage(Id, msg);
            }
        }
示例#4
0
文件: Parser.cs 项目: jesumarquez/lt
 private void SendMessages(String config, ulong messageId, ulong seq)
 {
     Fota.Enqueue(this, messageId, String.Format("{0}///;#{1:X4}", config, seq));
 }
示例#5
0
 private void SendMessages(String config, ulong messageId)
 {
     Fota.Enqueue(this, messageId, config);
 }