コード例 #1
0
ファイル: IFoteable.cs プロジェクト: jesumarquez/lt
        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);
 }