You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
// See https://aka.ms/new-console-template for more information
|
|
|
|
|
|
|
|
|
|
using ConsoleStarter;
|
|
|
|
|
using log4net;
|
|
|
|
|
using log4net.Config;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
internal class Program
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
private static readonly ILog Log = LogManager.GetLogger(typeof(Program));
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
XmlConfigurator.ConfigureAndWatch(new FileInfo(AppDomain.CurrentDomain.BaseDirectory + @"\log4net.xml"));
|
|
|
|
|
|
|
|
|
|
string s = "55 AA 00 00 01 01 00 D9 00 00 00 00 00 00 0E 00 00 00 0E 00 25 64 69 73 70 30 3B 31 CD A3 D7 BC C1 CB 00 00 0D 0A".Replace(" ", "");
|
|
|
|
|
for (int i = 0; i < s.Length-1; i+=2)
|
|
|
|
|
{
|
|
|
|
|
Console.Write($"0x{s[i]}{s[i+1]},");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|