|
@@ -842,6 +842,26 @@ namespace MOKA_Factory_Tools
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
+ #region 串口重试机制;
|
|
|
+ if (jObject["EnableRetry"] != null)
|
|
|
+ {
|
|
|
+ functionSetting1.EnableRetry = jObject["EnableRetry"].Value<bool>();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ SaveJsonConfig("EnableRetry", false);
|
|
|
+ }
|
|
|
+
|
|
|
+ if (jObject["RetryCount"] != null)
|
|
|
+ {
|
|
|
+ functionSetting1.RetryCount = jObject["RetryCount"].Value<int>();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ SaveJsonConfig("RetryCount", 3);
|
|
|
+ }
|
|
|
+ #endregion
|
|
|
+
|
|
|
foreach (var ss in jObject["Channel"]) //遍历Channel
|
|
|
{
|
|
|
Dictionary<string, string> ChannelValues = JsonConvert.DeserializeObject<Dictionary<string, string>>(ss.ToString());
|