Commit e8c4b816 authored by JiangYixing's avatar JiangYixing

Upload New File

parent 6649c192
Pipeline #117 canceled with stages
using System;
using System.IO.Ports;
using Newtonsoft.Json;
using System.IO;
using System.Text;
namespace Cfet2Vacuun
{
public class ComConfig
{
public string com { get; set; }
public int baudrate { get; set; }
public Parity parity { get; set; }
public StopBits stopbits { get; set; }
public int databits { get; set; }
public Handshake handshake { get; set; }
public ComConfig() { }
public ComConfig(string filepath)
{
JsonConvert.PopulateObject(File.ReadAllText(filepath, Encoding.Default), this);
}
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment