Beispiel #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); */
        }
Beispiel #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;
            }
        }
Beispiel #3
0
        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);
            }
        }
Beispiel #4
0
 private void SendMessages(String config, ulong messageId, ulong seq)
 {
     Fota.Enqueue(this, messageId, String.Format("{0}///;#{1:X4}", config, seq));
 }
Beispiel #5
0
 private void SendMessages(String config, ulong messageId)
 {
     Fota.Enqueue(this, messageId, config);
 }