Beispiel #1
0
        public override string ToVerboseString()
        {
            StringBuilder sb = new StringBuilder();

            sb.AppendFormat(" (MACPayload = AppNonce[3] | NetID[3] | DevAddr[4] | DLSettings[1] | RxDelay[1] | CFList[0 | 15])").AppendLine();
            sb.AppendFormat("    AppNonce = {0}", AppNonce.Value).AppendLine();
            sb.AppendFormat("       NetID = {0}", NetID.Value).AppendLine();
            sb.AppendFormat("     DevAddr = {0}", DevAddr.Address).AppendLine();
            sb.AppendFormat("  DLSettings = {0}", DLSettings.RawData.ToHexString()).AppendLine();
            sb.AppendFormat("     RxDelay = {0}", RxDelay.RawData.ToHexString()).AppendLine();
            sb.AppendFormat("      CFList = {0}", CFList.RawData.ToHexString()).AppendLine();
            sb.AppendLine();
            sb.Append(DLSettings.ToVerboseString());
            sb.AppendLine();
            sb.Append(RxDelay.ToVerboseString());
            if (CalculatedMIC.IsValid)
            {
                sb.AppendFormat("    Calc MIC = {0})", CalculatedMIC.RawData.ToHexString()).AppendLine();
            }

            return(sb.ToString());
        }