北向接口
This commit is contained in:
parent
f3035ae15e
commit
14e4c5baf9
Binary file not shown.
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/.vs/ITFNtest/v17/.suo
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/.vs/ITFNtest/v17/.suo
Normal file
Binary file not shown.
25
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest.sln
Normal file
25
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest.sln
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.6.33717.318
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ITFNtest", "ITFNtest\ITFNtest.csproj", "{510ADC33-2429-4EAB-A7A0-B8C29CA61632}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{510ADC33-2429-4EAB-A7A0-B8C29CA61632}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{510ADC33-2429-4EAB-A7A0-B8C29CA61632}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{510ADC33-2429-4EAB-A7A0-B8C29CA61632}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{510ADC33-2429-4EAB-A7A0-B8C29CA61632}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {9AF22191-13AF-4908-8DAA-E86D6770B6CA}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
6
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/App.config
Normal file
6
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/App.config
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
321
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/Form1.Designer.cs
generated
Normal file
321
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/Form1.Designer.cs
generated
Normal file
@ -0,0 +1,321 @@
|
||||
namespace ITFNtest
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <summary>
|
||||
/// 必需的设计器变量。
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// 清理所有正在使用的资源。
|
||||
/// </summary>
|
||||
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows 窗体设计器生成的代码
|
||||
|
||||
/// <summary>
|
||||
/// 设计器支持所需的方法 - 不要修改
|
||||
/// 使用代码编辑器修改此方法的内容。
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.labMessage = new System.Windows.Forms.Label();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.label5 = new System.Windows.Forms.Label();
|
||||
this.label6 = new System.Windows.Forms.Label();
|
||||
this.txtIP = new System.Windows.Forms.TextBox();
|
||||
this.txtPort = new System.Windows.Forms.TextBox();
|
||||
this.txtUsername = new System.Windows.Forms.TextBox();
|
||||
this.txtPassword = new System.Windows.Forms.TextBox();
|
||||
this.txtTopic = new System.Windows.Forms.TextBox();
|
||||
this.btnConnect = new System.Windows.Forms.Button();
|
||||
this.btnSend = new System.Windows.Forms.Button();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.txtQos = new System.Windows.Forms.TextBox();
|
||||
this.btnSub = new System.Windows.Forms.Button();
|
||||
this.label7 = new System.Windows.Forms.Label();
|
||||
this.textSub = new System.Windows.Forms.TextBox();
|
||||
this.labgetmessage = new System.Windows.Forms.Label();
|
||||
this.labGetMess = new System.Windows.Forms.Label();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// labMessage
|
||||
//
|
||||
this.labMessage.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
||||
this.labMessage.Location = new System.Drawing.Point(27, 190);
|
||||
this.labMessage.Name = "labMessage";
|
||||
this.labMessage.Size = new System.Drawing.Size(754, 273);
|
||||
this.labMessage.TabIndex = 0;
|
||||
this.labMessage.Text = "发送文本";
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(27, 33);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(17, 12);
|
||||
this.label2.TabIndex = 1;
|
||||
this.label2.Text = "IP";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(29, 70);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(29, 12);
|
||||
this.label3.TabIndex = 2;
|
||||
this.label3.Text = "端口";
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(264, 33);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(41, 12);
|
||||
this.label4.TabIndex = 3;
|
||||
this.label4.Text = "用户名";
|
||||
//
|
||||
// label5
|
||||
//
|
||||
this.label5.AutoSize = true;
|
||||
this.label5.Location = new System.Drawing.Point(264, 76);
|
||||
this.label5.Name = "label5";
|
||||
this.label5.Size = new System.Drawing.Size(29, 12);
|
||||
this.label5.TabIndex = 4;
|
||||
this.label5.Text = "密码";
|
||||
//
|
||||
// label6
|
||||
//
|
||||
this.label6.AutoSize = true;
|
||||
this.label6.Location = new System.Drawing.Point(493, 33);
|
||||
this.label6.Name = "label6";
|
||||
this.label6.Size = new System.Drawing.Size(53, 12);
|
||||
this.label6.TabIndex = 5;
|
||||
this.label6.Text = "发送主题";
|
||||
//
|
||||
// txtIP
|
||||
//
|
||||
this.txtIP.Location = new System.Drawing.Point(105, 33);
|
||||
this.txtIP.Name = "txtIP";
|
||||
this.txtIP.Size = new System.Drawing.Size(100, 21);
|
||||
this.txtIP.TabIndex = 6;
|
||||
this.txtIP.Text = "41.0.1.198";
|
||||
//
|
||||
// txtPort
|
||||
//
|
||||
this.txtPort.Location = new System.Drawing.Point(105, 67);
|
||||
this.txtPort.Name = "txtPort";
|
||||
this.txtPort.Size = new System.Drawing.Size(100, 21);
|
||||
this.txtPort.TabIndex = 7;
|
||||
this.txtPort.Text = "1883";
|
||||
//
|
||||
// txtUsername
|
||||
//
|
||||
this.txtUsername.Location = new System.Drawing.Point(341, 33);
|
||||
this.txtUsername.Name = "txtUsername";
|
||||
this.txtUsername.Size = new System.Drawing.Size(100, 21);
|
||||
this.txtUsername.TabIndex = 8;
|
||||
this.txtUsername.Text = "southUser_1";
|
||||
//
|
||||
// txtPassword
|
||||
//
|
||||
this.txtPassword.Location = new System.Drawing.Point(341, 70);
|
||||
this.txtPassword.Name = "txtPassword";
|
||||
this.txtPassword.Size = new System.Drawing.Size(100, 21);
|
||||
this.txtPassword.TabIndex = 9;
|
||||
this.txtPassword.Text = "southUser_1";
|
||||
//
|
||||
// txtTopic
|
||||
//
|
||||
this.txtTopic.Location = new System.Drawing.Point(576, 30);
|
||||
this.txtTopic.Name = "txtTopic";
|
||||
this.txtTopic.Size = new System.Drawing.Size(179, 21);
|
||||
this.txtTopic.TabIndex = 10;
|
||||
this.txtTopic.Text = "ocean/south/message/status";
|
||||
//
|
||||
// btnConnect
|
||||
//
|
||||
this.btnConnect.Location = new System.Drawing.Point(495, 76);
|
||||
this.btnConnect.Name = "btnConnect";
|
||||
this.btnConnect.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnConnect.TabIndex = 11;
|
||||
this.btnConnect.Text = "连接";
|
||||
this.btnConnect.UseVisualStyleBackColor = true;
|
||||
this.btnConnect.Click += new System.EventHandler(this.btnConnect_Click);
|
||||
//
|
||||
// btnSend
|
||||
//
|
||||
this.btnSend.Location = new System.Drawing.Point(611, 76);
|
||||
this.btnSend.Name = "btnSend";
|
||||
this.btnSend.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnSend.TabIndex = 12;
|
||||
this.btnSend.Text = "发送";
|
||||
this.btnSend.UseVisualStyleBackColor = true;
|
||||
this.btnSend.Click += new System.EventHandler(this.btnSend_Click);
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Location = new System.Drawing.Point(31, 114);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(23, 12);
|
||||
this.label1.TabIndex = 13;
|
||||
this.label1.Text = "Qos";
|
||||
//
|
||||
// txtQos
|
||||
//
|
||||
this.txtQos.Location = new System.Drawing.Point(105, 114);
|
||||
this.txtQos.Name = "txtQos";
|
||||
this.txtQos.Size = new System.Drawing.Size(100, 21);
|
||||
this.txtQos.TabIndex = 14;
|
||||
this.txtQos.Text = "1";
|
||||
//
|
||||
// btnSub
|
||||
//
|
||||
this.btnSub.Location = new System.Drawing.Point(525, 112);
|
||||
this.btnSub.Name = "btnSub";
|
||||
this.btnSub.Size = new System.Drawing.Size(75, 23);
|
||||
this.btnSub.TabIndex = 15;
|
||||
this.btnSub.Text = "订阅";
|
||||
this.btnSub.UseVisualStyleBackColor = true;
|
||||
this.btnSub.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// label7
|
||||
//
|
||||
this.label7.AutoSize = true;
|
||||
this.label7.Location = new System.Drawing.Point(266, 114);
|
||||
this.label7.Name = "label7";
|
||||
this.label7.Size = new System.Drawing.Size(53, 12);
|
||||
this.label7.TabIndex = 16;
|
||||
this.label7.Text = "订阅名称";
|
||||
//
|
||||
// textSub
|
||||
//
|
||||
this.textSub.Location = new System.Drawing.Point(341, 113);
|
||||
this.textSub.Name = "textSub";
|
||||
this.textSub.Size = new System.Drawing.Size(178, 21);
|
||||
this.textSub.TabIndex = 17;
|
||||
this.textSub.Text = "ocean/south/message/require";
|
||||
this.textSub.TextChanged += new System.EventHandler(this.textSub_TextChanged);
|
||||
//
|
||||
// labgetmessage
|
||||
//
|
||||
this.labgetmessage.Location = new System.Drawing.Point(33, 160);
|
||||
this.labgetmessage.Name = "labgetmessage";
|
||||
this.labgetmessage.Size = new System.Drawing.Size(722, 23);
|
||||
this.labgetmessage.TabIndex = 18;
|
||||
this.labgetmessage.Text = "订阅消息";
|
||||
//
|
||||
// labGetMess
|
||||
//
|
||||
this.labGetMess.Location = new System.Drawing.Point(33, 524);
|
||||
this.labGetMess.Name = "labGetMess";
|
||||
this.labGetMess.Size = new System.Drawing.Size(694, 297);
|
||||
this.labGetMess.TabIndex = 19;
|
||||
this.labGetMess.Text = "接受到的文本";
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(733, 610);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 23);
|
||||
this.button1.TabIndex = 20;
|
||||
this.button1.Text = "099999999999999999999999999999999999999999";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click_1);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Location = new System.Drawing.Point(733, 692);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(75, 23);
|
||||
this.button2.TabIndex = 21;
|
||||
this.button2.Text = "button2";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new System.EventHandler(this.button2_Click);
|
||||
//
|
||||
// timer1
|
||||
//
|
||||
this.timer1.Enabled = true;
|
||||
this.timer1.Interval = 300000;
|
||||
this.timer1.Tick += new System.EventHandler(this.change);
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(820, 860);
|
||||
this.Controls.Add(this.button2);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.labGetMess);
|
||||
this.Controls.Add(this.labgetmessage);
|
||||
this.Controls.Add(this.textSub);
|
||||
this.Controls.Add(this.label7);
|
||||
this.Controls.Add(this.btnSub);
|
||||
this.Controls.Add(this.txtQos);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.btnSend);
|
||||
this.Controls.Add(this.btnConnect);
|
||||
this.Controls.Add(this.txtTopic);
|
||||
this.Controls.Add(this.txtPassword);
|
||||
this.Controls.Add(this.txtUsername);
|
||||
this.Controls.Add(this.txtPort);
|
||||
this.Controls.Add(this.txtIP);
|
||||
this.Controls.Add(this.label6);
|
||||
this.Controls.Add(this.label5);
|
||||
this.Controls.Add(this.label4);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.labMessage);
|
||||
this.Name = "Form1";
|
||||
this.Text = "Form1";
|
||||
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Form1_FormClosed);
|
||||
this.Load += new System.EventHandler(this.Form1_Load);
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label labMessage;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label label5;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.TextBox txtIP;
|
||||
private System.Windows.Forms.TextBox txtPort;
|
||||
private System.Windows.Forms.TextBox txtUsername;
|
||||
private System.Windows.Forms.TextBox txtPassword;
|
||||
private System.Windows.Forms.TextBox txtTopic;
|
||||
private System.Windows.Forms.Button btnConnect;
|
||||
private System.Windows.Forms.Button btnSend;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.TextBox txtQos;
|
||||
private System.Windows.Forms.Button btnSub;
|
||||
private System.Windows.Forms.Label label7;
|
||||
private System.Windows.Forms.TextBox textSub;
|
||||
private System.Windows.Forms.Label labgetmessage;
|
||||
private System.Windows.Forms.Label labGetMess;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Timer timer1;
|
||||
}
|
||||
}
|
||||
|
||||
527
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/Form1.cs
Normal file
527
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/Form1.cs
Normal file
@ -0,0 +1,527 @@
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ITFNtest
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
public string getdatatime="1";
|
||||
public ItfN test = new ItfN();
|
||||
public ItfN.Root root = new ItfN.Root();
|
||||
private System.Threading.Timer timerResend;
|
||||
private System.Threading.Timer keepsend;
|
||||
public void set()
|
||||
{
|
||||
test.Server = txtIP.Text;
|
||||
test.Port = int.Parse(txtPort.Text);
|
||||
test.Username = txtUsername.Text;
|
||||
test.Password = txtPassword.Text;
|
||||
test.TOPIC = txtTopic.Text;
|
||||
test.SubscribeName = textSub.Text;
|
||||
|
||||
}
|
||||
|
||||
private void creatdata()
|
||||
{
|
||||
DateTime time = DateTime.Now;
|
||||
string time1 = time.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
//总根节点
|
||||
root.k01 = new ItfN.K01();
|
||||
//头部信息根节点
|
||||
root.k01.k01_1 = new ItfN.K01_1()
|
||||
{
|
||||
k01_1_01 = "01",
|
||||
k01_1_02 = time1,
|
||||
k01_1_03 = "V0.1",
|
||||
k01_1_04 = "ZTMS-DJS-01",
|
||||
k01_1_05 = "0"
|
||||
};
|
||||
//基本信息
|
||||
root.k01.k01_2 = new ItfN.K01_2()
|
||||
{
|
||||
k01_2_01 = "24.6",
|
||||
k01_2_02 = "13.2",
|
||||
k01_2_03 = "41.244.68.56",
|
||||
k01_2_04 = "ZTMS-PJB-DZC-01"
|
||||
};
|
||||
//状态信息根节点
|
||||
root.k01.k01_3 = new ItfN.K01_3();
|
||||
// 光电分离舱状态根节点
|
||||
root.k01.k01_3.k01_3_01 = new ItfN.K01_3_01();
|
||||
// 光电分离舱(1)状态根节点
|
||||
root.k01.k01_3.k01_3_01.k01_3_01_01 = new ItfN.K01_3_01_01
|
||||
{
|
||||
k01_3_01_01_01 = "01-001-01",
|
||||
k01_3_01_01_02 = "30.5",
|
||||
k01_3_01_01_03 = "10.6",
|
||||
k01_3_01_01_04 = "0",
|
||||
k01_3_01_01_05 = "0",
|
||||
k01_3_01_01_06 = "0"
|
||||
};
|
||||
// 电子舱状态根节点
|
||||
root.k01.k01_3.k01_3_02 = new ItfN.K01_3_02();
|
||||
// 电子舱(1)状态根节点
|
||||
root.k01.k01_3.k01_3_02.k01_3_02_01 = new ItfN.K01_3_02_01
|
||||
{
|
||||
k01_3_02_01_01 = "01-002-01",
|
||||
k01_3_02_01_02 = "374",
|
||||
k01_3_02_01_03 = "4.2",
|
||||
k01_3_02_01_04 = "48",
|
||||
k01_3_02_01_05 = "1.1",
|
||||
k01_3_02_01_06 = "23.2",
|
||||
k01_3_02_01_07 = "0.9",
|
||||
k01_3_02_01_08 = "12.1",
|
||||
k01_3_02_01_09 = "0.2",
|
||||
k01_3_02_01_10 = "0",
|
||||
k01_3_02_01_11 = "0",
|
||||
k01_3_02_01_12 = "0",
|
||||
k01_3_02_01_13 = "0",
|
||||
k01_3_02_01_14 = "0",
|
||||
k01_3_02_01_15 = "0",
|
||||
k01_3_02_01_16 = "0",
|
||||
k01_3_02_01_17 = "0",
|
||||
k01_3_02_01_18 = "27.8",
|
||||
k01_3_02_01_19 = "12",
|
||||
k01_3_02_01_20 = "2",
|
||||
k01_3_02_01_21 = "9",
|
||||
k01_3_02_01_22 = "23",
|
||||
k01_3_02_01_23 = "0",
|
||||
k01_3_02_01_24 = "0",
|
||||
k01_3_02_01_25 = "1.2",
|
||||
k01_3_02_01_26 = "0",
|
||||
k01_3_02_01_27 = "0"
|
||||
};
|
||||
// 电子舱输出端口状态节点
|
||||
root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28 = new ItfN.K01_3_02_01_28()
|
||||
{
|
||||
k01_3_02_01_28_01 = "47.4",
|
||||
k01_3_02_01_28_02 = "1.5",
|
||||
k01_3_02_01_28_03 = "0",
|
||||
k01_3_02_01_28_04 = "24.2",
|
||||
k01_3_02_01_28_05 = "1.2",
|
||||
k01_3_02_01_28_06 = "0",
|
||||
k01_3_02_01_28_07 = "12.7",
|
||||
k01_3_02_01_28_08 = "0.7",
|
||||
k01_3_02_01_28_09 = "0",
|
||||
k01_3_02_01_28_10 = "12.4",
|
||||
k01_3_02_01_28_11 = "0.8",
|
||||
k01_3_02_01_28_12 = "0",
|
||||
k01_3_02_01_28_13 = "24.4",
|
||||
k01_3_02_01_28_14 = "1.3",
|
||||
k01_3_02_01_28_15 = "0",
|
||||
k01_3_02_01_28_16 = "47.9",
|
||||
k01_3_02_01_28_17 = "1.6",
|
||||
k01_3_02_01_28_18 = "0",
|
||||
k01_3_02_01_28_19 = "12.4",
|
||||
k01_3_02_01_28_20 = "0.3",
|
||||
k01_3_02_01_28_21 = "0",
|
||||
k01_3_02_01_28_22 = "12.7",
|
||||
k01_3_02_01_28_23 = "0.4",
|
||||
k01_3_02_01_28_24 = "0",
|
||||
k01_3_02_01_28_25 = "11.9",
|
||||
k01_3_02_01_28_26 = "0.2",
|
||||
k01_3_02_01_28_27 = "0",
|
||||
k01_3_02_01_28_28 = "12.1",
|
||||
k01_3_02_01_28_29 = "0.4",
|
||||
k01_3_02_01_28_30 = "0",
|
||||
k01_3_02_01_28_31 = "24.8",
|
||||
k01_3_02_01_28_32 = "1.3",
|
||||
k01_3_02_01_28_33 = "0",
|
||||
k01_3_02_01_28_34 = "48.2",
|
||||
k01_3_02_01_28_35 = "1.6",
|
||||
k01_3_02_01_28_36 = "0"
|
||||
};
|
||||
//外接传感器状态信息根节点
|
||||
root.k01.k01_3.k01_3_03 = new ItfN.K01_3_03();
|
||||
// 多参数水质仪状态信息根节点
|
||||
root.k01.k01_3.k01_3_03.k01_3_03_01 = new ItfN.K01_3_03_01()
|
||||
{
|
||||
k01_3_03_01_01 = "01-100-01",
|
||||
k01_3_03_01_02 = "01-002-01",
|
||||
k01_3_03_01_04 = "24.2",
|
||||
k01_3_03_01_05 = "0.02",
|
||||
k01_3_03_01_06 = "0",
|
||||
k01_3_03_01_07 = "0"
|
||||
};
|
||||
//多参数水质仪实时测量值根节点
|
||||
root.k01.k01_3.k01_3_03.k01_3_03_01.k01_3_03_01_03 = new ItfN.K01_3_03_01_03()
|
||||
{
|
||||
k01_3_03_01_03_01 = "36.6",
|
||||
k01_3_03_01_03_02 = "6.9",
|
||||
k01_3_03_01_03_03 = "23452",
|
||||
k01_3_03_01_03_04 = "234",
|
||||
k01_3_03_01_03_05 = "8.9",
|
||||
k01_3_03_01_03_06 = "23.4"
|
||||
};
|
||||
//CO2传感器状态信息根节点
|
||||
root.k01.k01_3.k01_3_03.k01_3_03_02 = new ItfN.K01_3_03_02()
|
||||
{
|
||||
k01_3_03_02_01 = "01-101-01",
|
||||
k01_3_03_02_02 = "01-002-01",
|
||||
k01_3_03_02_04 = "24.4",
|
||||
k01_3_03_02_05 = "1.4",
|
||||
k01_3_03_02_06 = "0",
|
||||
k01_3_03_02_07 = "0"
|
||||
|
||||
};
|
||||
//CO2实时测量值根节点
|
||||
root.k01.k01_3.k01_3_03.k01_3_03_02.k01_3_03_02_03 = new ItfN.K01_3_03_02_03() { k01_3_03_02_03_01 = "2.6" };
|
||||
//CTD状态信息根节点
|
||||
root.k01.k01_3.k01_3_03.k01_3_03_03 = new ItfN.K01_3_03_03()
|
||||
{
|
||||
k01_3_03_03_01 = "01-102-01",
|
||||
k01_3_03_03_02 = "01-002-01",
|
||||
k01_3_03_03_04 = "24.7",
|
||||
k01_3_03_03_05 = "0.7",
|
||||
k01_3_03_03_06 = "0",
|
||||
k01_3_03_03_07 = "0"
|
||||
};
|
||||
root.k01.k01_3.k01_3_03.k01_3_03_03.k01_3_03_03_03 = new ItfN.K01_3_03_03_03()
|
||||
{
|
||||
k01_3_03_03_03_01 = "37.3",
|
||||
k01_3_03_03_03_02 = "23451",
|
||||
k01_3_03_03_03_03 = "4.4"
|
||||
};
|
||||
//ADCP状态信息根节点
|
||||
root.k01.k01_3.k01_3_03.k01_3_03_04 = new ItfN.K01_3_03_04()
|
||||
{
|
||||
k01_3_03_04_01 = "01-103-01",
|
||||
k01_3_03_04_02 = "01-002-01",
|
||||
k01_3_03_04_04 = "28.3",
|
||||
k01_3_03_04_05 = "0.3",
|
||||
k01_3_03_04_06 = "0",
|
||||
k01_3_03_04_07 = "0"
|
||||
};
|
||||
root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_03 = new ItfN.K01_3_03_04_03()
|
||||
{
|
||||
k01_3_03_04_03_01 = "1.3",
|
||||
k01_3_03_04_03_02 = "12",
|
||||
k01_3_03_04_03_03 = "1.4",
|
||||
k01_3_03_04_03_04 = "11",
|
||||
k01_3_03_04_03_05 = "1.1",
|
||||
k01_3_03_04_03_06 = "2",
|
||||
k01_3_03_04_03_07 = "1.8",
|
||||
k01_3_03_04_03_08 = "14",
|
||||
k01_3_03_04_03_09 = "1.5",
|
||||
k01_3_03_04_03_10 = "10",
|
||||
k01_3_03_04_03_11 = "0.3",
|
||||
k01_3_03_04_03_12 = "10",
|
||||
k01_3_03_04_03_13 = "13",
|
||||
k01_3_03_04_03_14 = "3.5"
|
||||
};
|
||||
//影像舱状态信息根节点
|
||||
root.k01.k01_3.k01_3_03.k01_3_03_05 = new ItfN.K01_3_03_05()
|
||||
{
|
||||
k01_3_03_05_01 = "01-104-01",
|
||||
k01_3_03_05_02 = "01-002-01",
|
||||
k01_3_03_05_03 = "34.2",
|
||||
k01_3_03_05_04 = "28.4",
|
||||
k01_3_03_05_05 = "0",
|
||||
k01_3_03_05_06 = "24.5",
|
||||
k01_3_03_05_07 = "1.3",
|
||||
k01_3_03_05_08 = "1.6",
|
||||
k01_3_03_05_09 = "0",
|
||||
k01_3_03_05_10 = "0"
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
private void Form1_Load(object sender, EventArgs e)
|
||||
{
|
||||
// creatdata();
|
||||
timerResend = new System.Threading.Timer(new System.Threading.TimerCallback(lisenResend), null, 2000, 2000);
|
||||
keepsend= new System.Threading.Timer(new System.Threading.TimerCallback(kepsend), null, 10000, 300000);
|
||||
}
|
||||
private void kepsend(object sender)
|
||||
{
|
||||
creatdata();
|
||||
string a = "";
|
||||
a = JsonConvert.SerializeObject(root);
|
||||
a = a.Replace("k", "");
|
||||
a = a.Replace("K", "");
|
||||
a = a.Replace("_", ".");
|
||||
getdatatime = a;
|
||||
//labMessage.Text = a;
|
||||
test.TOPIC = "ocean/south/message/status";
|
||||
test.sendData(root, int.Parse(txtQos.Text));
|
||||
}
|
||||
private void lisenResend(object sender)
|
||||
{
|
||||
if (test.Swichdata == true)
|
||||
{
|
||||
|
||||
//test.sendData(root, int.Parse(txtQos.Text));
|
||||
if (test.link == false)
|
||||
{
|
||||
set();
|
||||
test.Connect();
|
||||
string a=test.Message;
|
||||
string[] strArray = a.Split('"');
|
||||
getdatatime= strArray[11];
|
||||
a = strArray[27];
|
||||
//labGetMess.Text = a;
|
||||
|
||||
resend(a);
|
||||
test.link = false;
|
||||
test.Swichdata = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
string a = test.Message;
|
||||
string[] strArray = a.Split('"');
|
||||
getdatatime = strArray[11];
|
||||
a = strArray[27];
|
||||
//labGetMess.Text = a;
|
||||
resend(a);
|
||||
test.Swichdata = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Console.WriteLine("未监测到重发信息");
|
||||
}
|
||||
}
|
||||
private void btnConnect_Click(object sender, EventArgs e)
|
||||
{
|
||||
set();
|
||||
//Console.WriteLine("6");
|
||||
test.Connect();
|
||||
}
|
||||
|
||||
private void btnSend_Click(object sender, EventArgs e)
|
||||
{
|
||||
creatdata();
|
||||
string a;
|
||||
a = JsonConvert.SerializeObject(root);
|
||||
a = a.Replace("k", "");
|
||||
a = a.Replace("K", "");
|
||||
a = a.Replace("_", ".");
|
||||
labMessage.Text = a;
|
||||
test.sendData(root, int.Parse(txtQos.Text));
|
||||
//labMessage.Text = test.JSON;
|
||||
//Console.WriteLine(test.JSON);
|
||||
}
|
||||
|
||||
private void Form1_FormClosed(object sender, FormClosedEventArgs e)
|
||||
{
|
||||
if (test.link)
|
||||
{
|
||||
test.DisConnect();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
//set();
|
||||
test.Subscribe(textSub.Text);
|
||||
|
||||
}
|
||||
|
||||
public void resend(string locat)
|
||||
{
|
||||
creatdata();
|
||||
string data = "";
|
||||
if (locat == "01") { data = JsonConvert.SerializeObject(root); }
|
||||
DateTime time = DateTime.Now;
|
||||
string time1 = time.ToString("yyyy-MM-dd HH:mm:ss");
|
||||
// string time1 = time.ToString().Replace("/", "-");
|
||||
|
||||
switch (locat)
|
||||
{
|
||||
case "01": data = JsonConvert.SerializeObject(root.k01.k01_2) + "," + JsonConvert.SerializeObject(root.k01.k01_3); break;
|
||||
case "01.1": data = ""; break;
|
||||
case "01.1.01": data = "\"01.1\":{\"01.1.01\":" + JsonConvert.SerializeObject(root.k01.k01_1.k01_1_01) + "}"; break;
|
||||
case "01.1.02": data = "\"01.1\":{\"01.1.02\":" + JsonConvert.SerializeObject(root.k01.k01_1.k01_1_02) + "}"; break;
|
||||
case "01.1.03": data = "\"01.1\":{\"01.1.03\":" + JsonConvert.SerializeObject(root.k01.k01_1.k01_1_03) + "}"; break;
|
||||
case "01.1.04": data = "\"01.1\":{\"01.1.04\":" + JsonConvert.SerializeObject(root.k01.k01_1.k01_1_04) + "}"; break;
|
||||
case "01.1.05": data = "\"01.1\":{\"01.1.05\":" + JsonConvert.SerializeObject(root.k01.k01_1.k01_1_05) + "}"; break;
|
||||
case "01.2": data = "\"01.2\":{" + JsonConvert.SerializeObject(root.k01.k01_2) + "}"; break;
|
||||
case "01.2.01": data = "\"01.2\":{\"01.2.01\":" + JsonConvert.SerializeObject(root.k01.k01_2.k01_2_01) + "}"; break;
|
||||
case "01.2.02": data = "\"01.2\":{\"01.2.02\":" + JsonConvert.SerializeObject(root.k01.k01_2.k01_2_02) + "}"; break;
|
||||
case "01.2.03": data = "\"01.2\":{\"01.2.03\":" + JsonConvert.SerializeObject(root.k01.k01_2.k01_2_03) + "}"; break;
|
||||
case "01.2.04": data = "\"01.2\":{\"01.2.04\":" + JsonConvert.SerializeObject(root.k01.k01_2.k01_2_04) + "}"; break;
|
||||
case "01.3": data = "\"01.3\":{" + JsonConvert.SerializeObject(root.k01.k01_3) + "}"; break;
|
||||
case "01.3.01": data = "\"01.3\":{\"01.3.01\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_01) + "}"; break;
|
||||
case "01.3.01.01": data = "\"01.3\":{\"01.3.01\":{ \"01.3.01.01\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_01.k01_3_01_01) + "}"; break;
|
||||
case "01.3.01.01.01": data = "\"01.3\":{\"01.3.01\":{ \"01.3.01.01\":{ \"01.3.01.01.01\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_01.k01_3_01_01.k01_3_01_01_01) + "}}}"; break;
|
||||
case "01.3.01.01.02": data = "\"01.3\":{\"01.3.01\":{ \"01.3.01.01\":{ \"01.3.01.01.02\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_01.k01_3_01_01.k01_3_01_01_02) + "}}}"; break;
|
||||
case "01.3.01.01.03": data = "\"01.3\":{\"01.3.01\":{ \"01.3.01.01\":{ \"01.3.01.01.03\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_01.k01_3_01_01.k01_3_01_01_03) + "}}}"; break;
|
||||
case "01.3.01.01.04": data = "\"01.3\":{\"01.3.01\":{ \"01.3.01.01\":{ \"01.3.01.01.04\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_01.k01_3_01_01.k01_3_01_01_04) + "}}}"; break;
|
||||
case "01.3.01.01.05": data = "\"01.3\":{\"01.3.01\":{ \"01.3.01.01\":{ \"01.3.01.01.05\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_01.k01_3_01_01.k01_3_01_01_05) + "}}}"; break;
|
||||
case "01.3.01.01.06": data = "\"01.3\":{\"01.3.01\":{ \"01.3.01.01\":{ \"01.3.01.01.06\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_01.k01_3_01_01.k01_3_01_01_06) + "}}}"; break;
|
||||
case "01.3.02": data = "\"01.3\":{\"01.3.02\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02) + "}"; break;
|
||||
case "01.3.02.01": data = "\"01.3\":{\"01.3.02\":{ \"01.3.02.01\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01) + "\"}}"; break;
|
||||
case "01.3.02.01.01": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.01\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_01) + "}}}"; break;
|
||||
case "01.3.02.01.02": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.02\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_02) + "}}}"; break;
|
||||
case "01.3.02.01.03": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.03\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_03) + "}}}"; break;
|
||||
case "01.3.02.01.04": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.04\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_04) + "}}}"; break;
|
||||
case "01.3.02.01.05": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.05\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_05) + "}}}"; break;
|
||||
case "01.3.02.01.06": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.06\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_06) + "}}}"; break;
|
||||
case "01.3.02.01.07": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.07\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_07) + "}}}"; break;
|
||||
case "01.3.02.01.08": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.08\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_08) + "}}}"; break;
|
||||
case "01.3.02.01.09": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.09\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_09) + "}}}"; break;
|
||||
case "01.3.02.01.10": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.10\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_10) + "}}}"; break;
|
||||
case "01.3.02.01.11": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.11\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_11) + "}}}"; break;
|
||||
case "01.3.02.01.12": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.12\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_12) + "}}}"; break;
|
||||
case "01.3.02.01.13": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.13\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_13) + "}}}"; break;
|
||||
case "01.3.02.01.14": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.14\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_14) + "}}}"; break;
|
||||
case "01.3.02.01.15": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.15\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_15) + "}}}"; break;
|
||||
case "01.3.02.01.16": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.16\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_16) + "}}}"; break;
|
||||
case "01.3.02.01.17": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.17\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_17) + "}}}"; break;
|
||||
case "01.3.02.01.18": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.18\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_18) + "}}}"; break;
|
||||
case "01.3.02.01.19": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.19\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_19) + "}}}"; break;
|
||||
case "01.3.02.01.20": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.20\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_20) + "}}}"; break;
|
||||
case "01.3.02.01.21": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.21\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_21) + "}}}"; break;
|
||||
case "01.3.02.01.22": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.22\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_22) + "}}}"; break;
|
||||
case "01.3.02.01.23": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.23\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_23) + "}}}"; break;
|
||||
case "01.3.02.01.24": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.24\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_24) + "}}}"; break;
|
||||
case "01.3.02.01.25": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.25\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_25) + "}}}"; break;
|
||||
case "01.3.02.01.26": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.26\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_26) + "}}}"; break;
|
||||
case "01.3.02.01.27": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.27\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_27) + "}}}"; break;
|
||||
case "01.3.02.01.28": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28) + "}}}"; break;
|
||||
case "01.3.02.01.28.01": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.01\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_01) + "}}}}"; break;
|
||||
case "01.3.02.01.28.02": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.02\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_02) + "}}}}"; break;
|
||||
case "01.3.02.01.28.03": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.03\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_03) + "}}}}"; break;
|
||||
case "01.3.02.01.28.04": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.04\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_04) + "}}}}"; break;
|
||||
case "01.3.02.01.28.05": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.05\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_05) + "}}}}"; break;
|
||||
case "01.3.02.01.28.06": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.06\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_06) + "}}}}"; break;
|
||||
case "01.3.02.01.28.07": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.07\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_07) + "}}}}"; break;
|
||||
case "01.3.02.01.28.08": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.08\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_08) + "}}}}"; break;
|
||||
case "01.3.02.01.28.09": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.09\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_09) + "}}}}"; break;
|
||||
case "01.3.02.01.28.10": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.10\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_10) + "}}}}"; break;
|
||||
case "01.3.02.01.28.11": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.11\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_11) + "}}}}"; break;
|
||||
case "01.3.02.01.28.12": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.12\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_12) + "}}}}"; break;
|
||||
case "01.3.02.01.28.13": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.13\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_13) + "}}}}"; break;
|
||||
case "01.3.02.01.28.14": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.14\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_14) + "}}}}"; break;
|
||||
case "01.3.02.01.28.15": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.15\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_15) + "}}}}"; break;
|
||||
case "01.3.02.01.28.16": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.16\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_16) + "}}}}"; break;
|
||||
case "01.3.02.01.28.17": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.17\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_17) + "}}}}"; break;
|
||||
case "01.3.02.01.28.18": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.18\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_18) + "}}}}"; break;
|
||||
case "01.3.02.01.28.19": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.19\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_19) + "}}}}"; break;
|
||||
case "01.3.02.01.28.20": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.20\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_20) + "}}}}"; break;
|
||||
case "01.3.02.01.28.21": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.21\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_21) + "}}}}"; break;
|
||||
case "01.3.02.01.28.22": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.22\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_22) + "}}}}"; break;
|
||||
case "01.3.02.01.28.23": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.23\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_23) + "}}}}"; break;
|
||||
case "01.3.02.01.28.24": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.24\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_24) + "}}}}"; break;
|
||||
case "01.3.02.01.28.25": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.25\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_25) + "}}}}"; break;
|
||||
case "01.3.02.01.28.26": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.26\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_26) + "}}}}"; break;
|
||||
case "01.3.02.01.28.27": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.27\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_27) + "}}}}"; break;
|
||||
case "01.3.02.01.28.28": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.28\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_28) + "}}}}"; break;
|
||||
case "01.3.02.01.28.29": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.29\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_29) + "}}}}"; break;
|
||||
case "01.3.02.01.28.30": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.30\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_30) + "}}}}"; break;
|
||||
case "01.3.02.01.28.31": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.31\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_31) + "}}}}"; break;
|
||||
case "01.3.02.01.28.32": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.32\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_32) + "}}}}"; break;
|
||||
case "01.3.02.01.28.33": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.33\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_33) + "}}}}"; break;
|
||||
case "01.3.02.01.28.34": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.34\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_34) + "}}}}"; break;
|
||||
case "01.3.02.01.28.35": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.35\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_35) + "}}}}"; break;
|
||||
case "01.3.02.01.28.36": data = "\"01.3\":{\"01.3.01\":{ \"01.3.02.01\":{ \"01.3.02.01.28\":{ \"01.3.02.01.28.36\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_02.k01_3_02_01.k01_3_02_01_28.k01_3_02_01_28_36) + "}}}}"; break;
|
||||
case "01.3.03": data = "\"01.3\":{\"01.3.03\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03) + "}"; break;
|
||||
case "01.3.03.01": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.01\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_01) + "}}"; break;
|
||||
case "01.3.03.01.01": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.01\":{ \"01.3.03.01.01\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_01.k01_3_03_01_01) + "}}}"; break;
|
||||
case "01.3.03.01.02": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.01\":{ \"01.3.03.01.02\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_01.k01_3_03_01_02) + "}}}"; break;
|
||||
case "01.3.03.01.03": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.01\":{ \"01.3.03.01.03\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_01.k01_3_03_01_03) + "}}}"; break;
|
||||
case "01.3.03.01.03.01": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.01\":{ \"01.3.03.01.03\":{ \"01.3.03.01.03.01\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_01.k01_3_03_01_03.k01_3_03_01_03_01) + "}}}}"; break;
|
||||
case "01.3.03.01.03.02": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.01\":{ \"01.3.03.01.03\":{ \"01.3.03.01.03.02\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_01.k01_3_03_01_03.k01_3_03_01_03_02) + "}}}}"; break;
|
||||
case "01.3.03.01.03.03": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.01\":{ \"01.3.03.01.03\":{ \"01.3.03.01.03.03\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_01.k01_3_03_01_03.k01_3_03_01_03_03) + "}}}}"; break;
|
||||
case "01.3.03.01.03.04": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.01\":{ \"01.3.03.01.03\":{ \"01.3.03.01.03.04\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_01.k01_3_03_01_03.k01_3_03_01_03_04) + "}}}}"; break;
|
||||
case "01.3.03.01.03.05": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.01\":{ \"01.3.03.01.03\":{ \"01.3.03.01.03.05\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_01.k01_3_03_01_03.k01_3_03_01_03_05) + "}}}}"; break;
|
||||
case "01.3.03.01.03.06": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.01\":{ \"01.3.03.01.03\":{ \"01.3.03.01.03.06\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_01.k01_3_03_01_03.k01_3_03_01_03_06) + "}}}}"; break;
|
||||
case "01.3.03.01.04": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.01\":{ \"01.3.03.01.04\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_01.k01_3_03_01_04) + "}}}"; break;
|
||||
case "01.3.03.01.05": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.01\":{ \"01.3.03.01.05\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_01.k01_3_03_01_05) + "}}}"; break;
|
||||
case "01.3.03.01.06": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.01\":{ \"01.3.03.01.06\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_01.k01_3_03_01_06) + "}}}"; break;
|
||||
case "01.3.03.01.07": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.01\":{ \"01.3.03.01.07\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_01.k01_3_03_01_07) + "}}}"; break;
|
||||
case "01.3.03.02": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.02\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_02) + "}}"; break;
|
||||
case "01.3.03.02.01": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.02\":{ \"01.3.03.02.01\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_02.k01_3_03_02_01) + "}}}"; break;
|
||||
case "01.3.03.02.02": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.02\":{ \"01.3.03.02.02\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_02.k01_3_03_02_02) + "}}}"; break;
|
||||
case "01.3.03.02.03": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.02\":{ \"01.3.03.02.03\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_02.k01_3_03_02_03) + "}}}"; break;
|
||||
case "01.3.03.02.03.01": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.02\":{ \"01.3.03.02.03\":{ \"01.3.03.01.03.01\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_02.k01_3_03_02_03.k01_3_03_02_03_01) + "\"}}}}"; break;
|
||||
case "01.3.03.02.04": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.02\":{ \"01.3.03.02.04\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_02.k01_3_03_02_04) + "}}}"; break;
|
||||
case "01.3.03.02.05": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.02\":{ \"01.3.03.02.05\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_02.k01_3_03_02_05) + "}}}"; break;
|
||||
case "01.3.03.02.06": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.02\":{ \"01.3.03.02.06\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_02.k01_3_03_02_06) + "}}}"; break;
|
||||
case "01.3.03.02.07": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.02\":{ \"01.3.03.02.07\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_02.k01_3_03_02_07) + "}}}"; break;
|
||||
case "01.3.03.03": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.03\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_03) + "\"}}"; break;
|
||||
case "01.3.03.03.01": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.03\":{ \"01.3.03.03.01\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_03.k01_3_03_03_01) + "}}}"; break;
|
||||
case "01.3.03.03.02": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.03\":{ \"01.3.03.03.02\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_03.k01_3_03_03_02) + "}}}"; break;
|
||||
case "01.3.03.03.03": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.03\":{ \"01.3.03.03.03\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_03.k01_3_03_03_03) + "}}}"; break;
|
||||
case "01.3.03.03.03.01": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.03\":{ \"01.3.03.03.03\":{ \"01.3.03.03.03.01\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_03.k01_3_03_03_03.k01_3_03_03_03_01) + "}}}}"; break;
|
||||
case "01.3.03.03.03.02": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.03\":{ \"01.3.03.03.03\":{ \"01.3.03.03.03.02\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_03.k01_3_03_03_03.k01_3_03_03_03_02) + "}}}}"; break;
|
||||
case "01.3.03.03.03.03": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.03\":{ \"01.3.03.03.03\":{ \"01.3.03.03.03.03\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_03.k01_3_03_03_03.k01_3_03_03_03_03) + "}}}}"; break;
|
||||
case "01.3.03.03.04": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.03\":{ \"01.3.03.03.04\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_03.k01_3_03_03_04) + "}}}"; break;
|
||||
case "01.3.03.03.05": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.03\":{ \"01.3.03.03.05\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_03.k01_3_03_03_05) + "}}}"; break;
|
||||
case "01.3.03.03.06": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.03\":{ \"01.3.03.03.06\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_03.k01_3_03_03_06) + "}}}"; break;
|
||||
case "01.3.03.03.07": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.03\":{ \"01.3.03.03.07\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_03.k01_3_03_03_07) + "}}}"; break;
|
||||
case "01.3.03.04": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.04\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04) + "}}"; break;
|
||||
case "01.3.03.04.01": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.04\":{ \"01.3.03.04.01\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_01.k01_3_03_01_01) + "}}}"; break;
|
||||
case "01.3.03.04.02": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.04\":{ \"01.3.03.04.02\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_01.k01_3_03_01_02) + "}}}"; break;
|
||||
case "01.3.03.04.03": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.04\":{ \"01.3.03.04.03\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_01.k01_3_03_01_03) + "}}}"; break;
|
||||
case "01.3.03.04.03.01": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.04\":{ \"01.3.03.04.03\":{ \"01.3.03.04.03.01\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_03.k01_3_03_04_03_01) + "}}}}"; break;
|
||||
case "01.3.03.04.03.02": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.04\":{ \"01.3.03.04.03\":{ \"01.3.03.04.03.02\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_03.k01_3_03_04_03_02) + "}}}}"; break;
|
||||
case "01.3.03.04.03.03": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.04\":{ \"01.3.03.04.03\":{ \"01.3.03.04.03.03\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_03.k01_3_03_04_03_03) + "}}}}"; break;
|
||||
case "01.3.03.04.03.04": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.04\":{ \"01.3.03.04.03\":{ \"01.3.03.04.03.04\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_03.k01_3_03_04_03_04) + "}}}}"; break;
|
||||
case "01.3.03.04.03.05": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.04\":{ \"01.3.03.04.03\":{ \"01.3.03.04.03.05\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_03.k01_3_03_04_03_05) + "}}}}"; break;
|
||||
case "01.3.03.04.03.06": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.04\":{ \"01.3.03.04.03\":{ \"01.3.03.04.03.06\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_03.k01_3_03_04_03_06) + "}}}}"; break;
|
||||
case "01.3.03.04.03.07": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.04\":{ \"01.3.03.04.03\":{ \"01.3.03.04.03.01\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_03.k01_3_03_04_03_01) + "}}}}"; break;
|
||||
case "01.3.03.04.03.08": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.04\":{ \"01.3.03.04.03\":{ \"01.3.03.04.03.02\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_03.k01_3_03_04_03_02) + "}}}}"; break;
|
||||
case "01.3.03.04.03.09": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.04\":{ \"01.3.03.04.03\":{ \"01.3.03.04.03.03\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_03.k01_3_03_04_03_03) + "}}}}"; break;
|
||||
case "01.3.03.04.03.10": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.04\":{ \"01.3.03.04.03\":{ \"01.3.03.04.03.04\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_03.k01_3_03_04_03_04) + "}}}}"; break;
|
||||
case "01.3.03.04.03.11": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.04\":{ \"01.3.03.04.03\":{ \"01.3.03.04.03.05\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_03.k01_3_03_04_03_05) + "}}}}"; break;
|
||||
case "01.3.03.04.03.12": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.04\":{ \"01.3.03.04.03\":{ \"01.3.03.04.03.06\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_03.k01_3_03_04_03_06) + "}}}}"; break;
|
||||
case "01.3.03.04.03.13": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.04\":{ \"01.3.03.04.03\":{ \"01.3.03.04.03.01\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_03.k01_3_03_04_03_01) + "}}}}"; break;
|
||||
case "01.3.03.04.03.14": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.04\":{ \"01.3.03.04.03\":{ \"01.3.03.04.03.02\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_03.k01_3_03_04_03_02) + "}}}}"; break;
|
||||
case "01.3.03.04.04": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.01\":{ \"01.3.03.01.04\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_04) + "}}}"; break;
|
||||
case "01.3.03.04.05": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.01\":{ \"01.3.03.01.05\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_05) + "}}}"; break;
|
||||
case "01.3.03.04.06": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.01\":{ \"01.3.03.01.06\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_06) + "}}}"; break;
|
||||
case "01.3.03.04.07": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.01\":{ \"01.3.03.01.07\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_04.k01_3_03_04_07) + "}}}"; break;
|
||||
case "01.3.03.05": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.05\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_05) + "\"}}"; break;
|
||||
case "01.3.03.05.01": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.05\":{ \"01.3.03.05.01\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_05.k01_3_03_05_01) + "}}}"; break;
|
||||
case "01.3.03.05.02": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.05\":{ \"01.3.03.05.02\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_05.k01_3_03_05_02) + "}}}"; break;
|
||||
case "01.3.03.05.03": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.05\":{ \"01.3.03.05.03\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_05.k01_3_03_05_03) + "}}}"; break;
|
||||
case "01.3.03.05.04": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.05\":{ \"01.3.03.05.04\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_05.k01_3_03_05_04) + "}}}"; break;
|
||||
case "01.3.03.05.05": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.05\":{ \"01.3.03.05.05\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_05.k01_3_03_05_05) + "}}}"; break;
|
||||
case "01.3.03.05.06": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.05\":{ \"01.3.03.05.06\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_05.k01_3_03_05_06) + "}}}"; break;
|
||||
case "01.3.03.05.07": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.05\":{ \"01.3.03.05.07\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_05.k01_3_03_05_07) + "}}}"; break;
|
||||
case "01.3.03.05.08": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.05\":{ \"01.3.03.05.08\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_05.k01_3_03_05_05) + "}}}"; break;
|
||||
case "01.3.03.05.09": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.05\":{ \"01.3.03.05.09\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_05.k01_3_03_05_06) + "}}}"; break;
|
||||
case "01.3.03.05.10": data = "\"01.3\":{\"01.3.03\":{ \"01.3.03.05\":{ \"01.3.03.05.10\":" + JsonConvert.SerializeObject(root.k01.k01_3.k01_3_03.k01_3_03_05.k01_3_03_05_07) + "}}}"; break;
|
||||
default:data = "未接收到正确重发节点";break;
|
||||
}
|
||||
data = "\"01\":{\"01.1\":{\"01.1.01\":\"01\",\"01.1.02\":\"" + time1 + "\",\"01.1.03\":\"0.1\",\"01.1.04\":\"ZTMS-DJS-01\",\"01.1.05\":\"0\"}," + data + "}";
|
||||
//labMessage.Text = data;
|
||||
test.TOPIC = "ocean/south/message/reply";
|
||||
test.resendData(data, 1);
|
||||
}
|
||||
|
||||
private void button1_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
labGetMess.Text = test.Message;
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
labGetMess.Text = getdatatime;
|
||||
}
|
||||
|
||||
private void textSub_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void change(object sender, EventArgs e)
|
||||
{
|
||||
labMessage.Text = getdatatime;
|
||||
}
|
||||
}
|
||||
}
|
||||
123
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/Form1.resx
Normal file
123
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/Form1.resx
Normal file
@ -0,0 +1,123 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
91
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/ITFNtest.csproj
Normal file
91
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/ITFNtest.csproj
Normal file
@ -0,0 +1,91 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{510ADC33-2429-4EAB-A7A0-B8C29CA61632}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>ITFNtest</RootNamespace>
|
||||
<AssemblyName>ITFNtest</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="MQTTnet, Version=4.1.4.563, Culture=neutral, PublicKeyToken=fdb7629f2e364a63, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MQTTnet.4.1.4.563\lib\net461\MQTTnet.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="ItfN.cs" />
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<None Include="packages.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
938
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/ItfN.cs
Normal file
938
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/ItfN.cs
Normal file
@ -0,0 +1,938 @@
|
||||
using MQTTnet.Client;
|
||||
using MQTTnet.Packets;
|
||||
using MQTTnet;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using MQTTnet.Protocol;
|
||||
using System.Windows.Forms;
|
||||
using static ITFNtest.ItfN;
|
||||
|
||||
namespace ITFNtest
|
||||
{
|
||||
public class ItfN
|
||||
{
|
||||
private IMqttClient mqttClient;
|
||||
public string Server="41.0.1.198"; //MQTTIP地址
|
||||
public int Port; //端口
|
||||
public string Username; //用户名称
|
||||
public string Password; //密码
|
||||
public string SubscribeName; //订阅名称
|
||||
public string JSON; //JSON字符串
|
||||
public string TOPIC; //发布主题
|
||||
public string Message=""; //接收到的信息
|
||||
public bool link = false; //连接状态
|
||||
public bool Swichdata = false; //接受消息状态
|
||||
|
||||
/// <summary>
|
||||
/// JSON类
|
||||
/// </summary>
|
||||
#region
|
||||
public class Root
|
||||
{
|
||||
/// <summary>
|
||||
/// 设备厂商ID
|
||||
/// </summary>
|
||||
public K01 k01 { get; set; }
|
||||
}
|
||||
|
||||
public class K01
|
||||
{
|
||||
/// <summary>
|
||||
/// 头部信息根节点
|
||||
/// </summary>
|
||||
public K01_1 k01_1 { get; set; }
|
||||
/// <summary>
|
||||
/// 基本信息
|
||||
/// </summary>
|
||||
public K01_2 k01_2 { get; set; }
|
||||
/// <summary>
|
||||
/// 状态信息根节点
|
||||
/// </summary>
|
||||
public K01_3 k01_3 { get; set; }
|
||||
}
|
||||
|
||||
public class K01_1
|
||||
{
|
||||
/// <summary>
|
||||
/// 厂商ID
|
||||
/// </summary>
|
||||
public string k01_1_01 { get; set; }
|
||||
/// <summary>
|
||||
/// 发送消息时间
|
||||
/// </summary>
|
||||
public string k01_1_02 { get; set; }
|
||||
/// <summary>
|
||||
/// 协议版本
|
||||
/// </summary>
|
||||
public string k01_1_03 { get; set; }
|
||||
/// <summary>
|
||||
/// 设备ID
|
||||
/// </summary>
|
||||
public string k01_1_04 { get; set; }
|
||||
/// <summary>
|
||||
/// 设备状态
|
||||
/// </summary>
|
||||
public string k01_1_05 { get; set; }
|
||||
}
|
||||
|
||||
public class K01_2
|
||||
{
|
||||
/// <summary>
|
||||
/// 位置信息(经度)
|
||||
/// </summary>
|
||||
public string k01_2_01 { get; set; }
|
||||
/// <summary>
|
||||
/// 位置信息(纬度)
|
||||
/// </summary>
|
||||
public string k01_2_02 { get; set; }
|
||||
/// <summary>
|
||||
/// IP地址
|
||||
/// </summary>
|
||||
public string k01_2_03 { get; set; }
|
||||
/// <summary>
|
||||
/// 舱罐ID
|
||||
/// </summary>
|
||||
public string k01_2_04 { get; set; }
|
||||
}
|
||||
|
||||
public class K01_3
|
||||
{
|
||||
/// <summary>
|
||||
/// 光电分离舱状态根节点
|
||||
/// </summary>
|
||||
public K01_3_01 k01_3_01 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱状态根节点
|
||||
/// </summary>
|
||||
public K01_3_02 k01_3_02 { get; set; }
|
||||
/// <summary>
|
||||
/// 外接传感器状态信息根节点
|
||||
/// </summary>
|
||||
public K01_3_03 k01_3_03 { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class K01_3_01
|
||||
{
|
||||
public K01_3_01_01 k01_3_01_01 { get; set; }
|
||||
}
|
||||
|
||||
public class K01_3_01_01
|
||||
{
|
||||
/// <summary>
|
||||
/// 仓节点ID
|
||||
/// </summary>
|
||||
public string k01_3_01_01_01 { get; set; }
|
||||
/// <summary>
|
||||
/// 分离舱温度
|
||||
/// </summary>
|
||||
public string k01_3_01_01_02 { get; set; }
|
||||
/// <summary>
|
||||
/// 分离舱湿度
|
||||
/// </summary>
|
||||
public string k01_3_01_01_03 { get; set; }
|
||||
/// <summary>
|
||||
/// 分离舱漏水
|
||||
/// </summary>
|
||||
public string k01_3_01_01_04 { get; set; }
|
||||
/// <summary>
|
||||
/// 分离舱运行状态
|
||||
/// </summary>
|
||||
public string k01_3_01_01_05 { get; set; }
|
||||
/// <summary>
|
||||
/// 分离舱异常状态
|
||||
/// </summary>
|
||||
public string k01_3_01_01_06 { get; set; }
|
||||
}
|
||||
|
||||
public class K01_3_02
|
||||
{
|
||||
public K01_3_02_01 k01_3_02_01 { get; set; }
|
||||
}
|
||||
|
||||
public class K01_3_02_01
|
||||
{
|
||||
/// <summary>
|
||||
/// 仓节点ID
|
||||
/// </summary>
|
||||
public string k01_3_02_01_01 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱输入电压
|
||||
/// </summary>
|
||||
public string k01_3_02_01_02 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱输入电流
|
||||
/// </summary>
|
||||
public string k01_3_02_01_03 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱48V输出电压
|
||||
/// </summary>
|
||||
public string k01_3_02_01_04 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱48V输出电流
|
||||
/// </summary>
|
||||
public string k01_3_02_01_05 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱24V输出电压
|
||||
/// </summary>
|
||||
public string k01_3_02_01_06 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱24V输出电流
|
||||
/// </summary>
|
||||
public string k01_3_02_01_07 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱12V输出电压
|
||||
/// </summary>
|
||||
public string k01_3_02_01_08 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱12V输出电流
|
||||
/// </summary>
|
||||
public string k01_3_02_01_09 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱375V输出接地绝缘值
|
||||
/// </summary>
|
||||
public string k01_3_02_01_10 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱375V输出接地状态
|
||||
/// </summary>
|
||||
public string k01_3_02_01_11 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱48V输出接地绝缘值
|
||||
/// </summary>
|
||||
public string k01_3_02_01_12 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱48V输出接地状态
|
||||
/// </summary>
|
||||
public string k01_3_02_01_13 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱24V输出接地绝缘值
|
||||
/// </summary>
|
||||
public string k01_3_02_01_14 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱24V输出接地状态
|
||||
/// </summary>
|
||||
public string k01_3_02_01_15 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱12V输出接地绝缘值
|
||||
/// </summary>
|
||||
public string k01_3_02_01_16 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱12V输出接地状态
|
||||
/// </summary>
|
||||
public string k01_3_02_01_17 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱温度
|
||||
/// </summary>
|
||||
public string k01_3_02_01_18 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱姿态X轴角度
|
||||
/// </summary>
|
||||
public string k01_3_02_01_19 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱姿态Y轴角度
|
||||
/// </summary>
|
||||
public string k01_3_02_01_20 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱姿态Z轴角度
|
||||
/// </summary>
|
||||
public string k01_3_02_01_21 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱内部湿度
|
||||
/// </summary>
|
||||
public string k01_3_02_01_22 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱漏水1
|
||||
/// </summary>
|
||||
public string k01_3_02_01_23 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱漏水2
|
||||
/// </summary>
|
||||
public string k01_3_02_01_24 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱通信气压
|
||||
/// </summary>
|
||||
public string k01_3_02_01_25 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱运行状态
|
||||
/// </summary>
|
||||
public string k01_3_02_01_26 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱异常状态
|
||||
/// </summary>
|
||||
public string k01_3_02_01_27 { get; set; }
|
||||
/// <summary>
|
||||
/// 电子舱输出端口状态节点
|
||||
/// </summary>
|
||||
public K01_3_02_01_28 k01_3_02_01_28 { get; set; }
|
||||
}
|
||||
|
||||
public class K01_3_02_01_28
|
||||
{
|
||||
/// <summary>
|
||||
/// 48V预留端⼝输出电压
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_01 { get; set; }
|
||||
/// <summary>
|
||||
/// 48V预留端⼝输出电流
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_02 { get; set; }
|
||||
/// <summary>
|
||||
/// 48V预留端⼝工作状态
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_03 { get; set; }
|
||||
/// <summary>
|
||||
/// 24V预留端⼝输出电压
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_04 { get; set; }
|
||||
/// <summary>
|
||||
/// 24V预留端⼝输出电流
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_05 { get; set; }
|
||||
/// <summary>
|
||||
/// 24V预留端⼝工作状态
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_06 { get; set; }
|
||||
/// <summary>
|
||||
/// 12V预留端⼝输出电压
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_07 { get; set; }
|
||||
/// <summary>
|
||||
/// 12V预留端⼝输出电流
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_08 { get; set; }
|
||||
/// <summary>
|
||||
/// 12V预留端⼝工作状态
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_09 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(多参数)电压
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_10 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(多参数)电流
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_11 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(多参数)工作状态
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_12 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(CTD)电压
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_13 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(CTD)电流
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_14 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(CTD)工作状态
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_15 { get; set; }
|
||||
/// <summary>7
|
||||
/// 端⼝输出(ADCP)电压
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_16 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(ADCP)电流
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_17 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(ADCP)工作状态
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_18 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(UV灯1)电压
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_19 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(UV灯1)电流
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_20 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(UV灯1)工作状态
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_21 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(UV灯2)电压
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_22 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(UV灯2)电流
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_23 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(UV灯2)工作状态
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_24 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(UV灯3)电压
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_25 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(UV灯3)电流
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_26 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(UV灯3)工作状态
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_27 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(UV灯4)电压
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_28 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(UV灯4)电流
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_29 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(UV灯4)工作状态
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_30 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(CO2)电压
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_31 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(CO2)电流
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_32 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(CO2)工作状态
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_33 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(摄像处理舱)电压
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_34 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(摄像处理舱)电流
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_35 { get; set; }
|
||||
/// <summary>
|
||||
/// 端⼝输出(摄像处理舱)工作状态
|
||||
/// </summary>
|
||||
public string k01_3_02_01_28_36 { get; set; }
|
||||
}
|
||||
|
||||
public class K01_3_03
|
||||
{
|
||||
/// <summary>
|
||||
/// 多参数水质仪状态信息根节点
|
||||
/// </summary>
|
||||
public K01_3_03_01 k01_3_03_01 { get; set; }
|
||||
/// <summary>
|
||||
/// CO2传感器状态信息根节点
|
||||
/// </summary>
|
||||
public K01_3_03_02 k01_3_03_02 { get; set; }
|
||||
/// <summary>
|
||||
/// CTD传感器状态信息根节点
|
||||
/// </summary>
|
||||
public K01_3_03_03 k01_3_03_03 { get; set; }
|
||||
/// <summary>
|
||||
/// ADCP传感器状态信息根节点
|
||||
/// </summary>
|
||||
public K01_3_03_04 k01_3_03_04 { get; set; }
|
||||
/// <summary>
|
||||
/// 影像舱状态信息根节点
|
||||
/// </summary>
|
||||
public K01_3_03_05 k01_3_03_05 { get; set; }
|
||||
}
|
||||
|
||||
public class K01_3_03_01
|
||||
{
|
||||
/// <summary>
|
||||
/// 传感器ID
|
||||
/// </summary>
|
||||
public string k01_3_03_01_01 { get; set; }
|
||||
/// <summary>
|
||||
/// 连接舱节点ID
|
||||
/// </summary>
|
||||
public string k01_3_03_01_02 { get; set; }
|
||||
/// <summary>
|
||||
/// 多参数水质仪实时测量值根节点
|
||||
/// </summary>
|
||||
public K01_3_03_01_03 k01_3_03_01_03 { get; set; }
|
||||
/// <summary>
|
||||
/// 传感器输入电压
|
||||
/// </summary>
|
||||
public string k01_3_03_01_04 { get; set; }
|
||||
/// <summary>
|
||||
/// 传感器输入电流
|
||||
/// </summary>
|
||||
public string k01_3_03_01_05 { get; set; }
|
||||
/// <summary>
|
||||
/// 传感器运行状态码
|
||||
/// </summary>
|
||||
public string k01_3_03_01_06 { get; set; }
|
||||
/// <summary>
|
||||
/// 传感器异常状态码
|
||||
/// </summary>
|
||||
public string k01_3_03_01_07 { get; set; }
|
||||
}
|
||||
|
||||
public class K01_3_03_01_03
|
||||
{
|
||||
/// <summary>
|
||||
/// 水温
|
||||
/// </summary>
|
||||
public string k01_3_03_01_03_01 { get; set; }
|
||||
/// <summary>
|
||||
/// 溶解氧
|
||||
/// </summary>
|
||||
public string k01_3_03_01_03_02 { get; set; }
|
||||
/// <summary>
|
||||
/// 电导率
|
||||
/// </summary>
|
||||
public string k01_3_03_01_03_03 { get; set; }
|
||||
/// <summary>
|
||||
/// 浊度
|
||||
/// </summary>
|
||||
public string k01_3_03_01_03_04 { get; set; }
|
||||
/// <summary>
|
||||
/// PH
|
||||
/// </summary>
|
||||
public string k01_3_03_01_03_05 { get; set; }
|
||||
/// <summary>
|
||||
/// 叶绿素
|
||||
/// </summary>
|
||||
public string k01_3_03_01_03_06 { get; set; }
|
||||
}
|
||||
|
||||
public class K01_3_03_02
|
||||
{
|
||||
/// <summary>
|
||||
/// 传感器ID
|
||||
/// </summary>
|
||||
public string k01_3_03_02_01 { get; set; }
|
||||
/// <summary>
|
||||
/// 连接舱节点ID
|
||||
/// </summary>
|
||||
public string k01_3_03_02_02 { get; set; }
|
||||
/// <summary>
|
||||
/// CO2实时测量值根节点
|
||||
/// </summary>
|
||||
public K01_3_03_02_03 k01_3_03_02_03 { get; set; }
|
||||
/// <summary>
|
||||
/// 传感器输入电压
|
||||
/// </summary>
|
||||
public string k01_3_03_02_04 { get; set; }
|
||||
/// <summary>
|
||||
/// 传感器输入电流
|
||||
/// </summary>
|
||||
public string k01_3_03_02_05 { get; set; }
|
||||
/// <summary>
|
||||
/// 传感器运行状态码
|
||||
/// </summary>
|
||||
public string k01_3_03_02_06 { get; set; }
|
||||
/// <summary>
|
||||
/// 传感器异常状态码
|
||||
/// </summary>
|
||||
public string k01_3_03_02_07 { get; set; }
|
||||
}
|
||||
|
||||
public class K01_3_03_02_03
|
||||
{
|
||||
/// <summary>
|
||||
/// CO2浓度
|
||||
/// </summary>
|
||||
public string k01_3_03_02_03_01 { get; set; }
|
||||
}
|
||||
|
||||
public class K01_3_03_03
|
||||
{
|
||||
/// <summary>
|
||||
/// 传感器ID
|
||||
/// </summary>
|
||||
public string k01_3_03_03_01 { get; set; }
|
||||
/// <summary>
|
||||
/// 连接舱节点ID
|
||||
/// </summary>
|
||||
public string k01_3_03_03_02 { get; set; }
|
||||
/// <summary>
|
||||
/// CTD实时测量值根节点
|
||||
/// </summary>
|
||||
public K01_3_03_03_03 k01_3_03_03_03 { get; set; }
|
||||
/// <summary>
|
||||
/// 传感器输入电压
|
||||
/// </summary>
|
||||
public string k01_3_03_03_04 { get; set; }
|
||||
/// <summary>
|
||||
/// 传感器输入电流
|
||||
/// </summary>
|
||||
public string k01_3_03_03_05 { get; set; }
|
||||
/// <summary>
|
||||
/// 传感器运行状态码
|
||||
/// </summary>
|
||||
public string k01_3_03_03_06 { get; set; }
|
||||
/// <summary>
|
||||
/// 传感器异常状态码
|
||||
/// </summary>
|
||||
public string k01_3_03_03_07 { get; set; }
|
||||
}
|
||||
|
||||
public class K01_3_03_03_03
|
||||
{
|
||||
/// <summary>
|
||||
/// 水温
|
||||
/// </summary>
|
||||
public string k01_3_03_03_03_01 { get; set; }
|
||||
/// <summary>
|
||||
/// 电导率
|
||||
/// </summary>
|
||||
public string k01_3_03_03_03_02 { get; set; }
|
||||
/// <summary>
|
||||
/// 水深
|
||||
/// </summary>
|
||||
public string k01_3_03_03_03_03 { get; set; }
|
||||
}
|
||||
|
||||
public class K01_3_03_04
|
||||
{
|
||||
/// <summary>
|
||||
/// 传感器ID
|
||||
/// </summary>
|
||||
public string k01_3_03_04_01 { get; set; }
|
||||
/// <summary>
|
||||
/// 连接舱节点ID
|
||||
/// </summary>
|
||||
public string k01_3_03_04_02 { get; set; }
|
||||
/// <summary>
|
||||
/// ADCP实时测量值根节点
|
||||
/// </summary>
|
||||
public K01_3_03_04_03 k01_3_03_04_03 { get; set; }
|
||||
/// <summary>
|
||||
/// 传感器输入电压
|
||||
/// </summary>
|
||||
public string k01_3_03_04_04 { get; set; }
|
||||
/// <summary>
|
||||
/// 传感器输入电流
|
||||
/// </summary>
|
||||
public string k01_3_03_04_05 { get; set; }
|
||||
/// <summary>
|
||||
/// 传感器运行状态码
|
||||
/// </summary>
|
||||
public string k01_3_03_04_06 { get; set; }
|
||||
/// <summary>
|
||||
/// 传感器异常状态码
|
||||
/// </summary>
|
||||
public string k01_3_03_04_07 { get; set; }
|
||||
}
|
||||
|
||||
public class K01_3_03_04_03
|
||||
{
|
||||
/// <summary>
|
||||
/// 流速1
|
||||
/// </summary>
|
||||
public string k01_3_03_04_03_01 { get; set; }
|
||||
/// <summary>
|
||||
/// 流向1
|
||||
/// </summary>
|
||||
public string k01_3_03_04_03_02 { get; set; }
|
||||
/// <summary>
|
||||
/// 流速2
|
||||
/// </summary>
|
||||
public string k01_3_03_04_03_03 { get; set; }
|
||||
/// <summary>
|
||||
/// 流向2
|
||||
/// </summary>
|
||||
public string k01_3_03_04_03_04 { get; set; }
|
||||
/// <summary>
|
||||
/// 流速3
|
||||
/// </summary>
|
||||
public string k01_3_03_04_03_05 { get; set; }
|
||||
/// <summary>
|
||||
/// 流向3
|
||||
/// </summary>
|
||||
public string k01_3_03_04_03_06 { get; set; }
|
||||
/// <summary>
|
||||
/// 流速4
|
||||
/// </summary>
|
||||
public string k01_3_03_04_03_07 { get; set; }
|
||||
/// <summary>
|
||||
/// 流向4
|
||||
/// </summary>
|
||||
public string k01_3_03_04_03_08 { get; set; }
|
||||
/// <summary>
|
||||
/// 流速5
|
||||
/// </summary>
|
||||
public string k01_3_03_04_03_09 { get; set; }
|
||||
/// <summary>
|
||||
/// 流向5
|
||||
/// </summary>
|
||||
public string k01_3_03_04_03_10 { get; set; }
|
||||
/// <summary>
|
||||
/// 波高
|
||||
/// </summary>
|
||||
public string k01_3_03_04_03_11 { get; set; }
|
||||
/// <summary>
|
||||
/// 波周期
|
||||
/// </summary>
|
||||
public string k01_3_03_04_03_12 { get; set; }
|
||||
/// <summary>
|
||||
/// 波向
|
||||
/// </summary>
|
||||
public string k01_3_03_04_03_13 { get; set; }
|
||||
/// <summary>
|
||||
/// 水深
|
||||
/// </summary>
|
||||
public string k01_3_03_04_03_14 { get; set; }
|
||||
}
|
||||
|
||||
public class K01_3_03_05
|
||||
{
|
||||
/// <summary>
|
||||
/// 传感器ID
|
||||
/// </summary>
|
||||
public string k01_3_03_05_01 { get; set; }
|
||||
/// <summary>
|
||||
/// 连接舱节点ID
|
||||
/// </summary>
|
||||
public string k01_3_03_05_02 { get; set; }
|
||||
/// <summary>
|
||||
/// 影像舱温度
|
||||
/// </summary>
|
||||
public string k01_3_03_05_03 { get; set; }
|
||||
/// <summary>
|
||||
/// 影像舱湿度
|
||||
/// </summary>
|
||||
public string k01_3_03_05_04 { get; set; }
|
||||
/// <summary>
|
||||
/// 影像舱漏水
|
||||
/// </summary>
|
||||
public string k01_3_03_05_05 { get; set; }
|
||||
/// <summary>
|
||||
/// 影像舱输入电压
|
||||
/// </summary>
|
||||
public string k01_3_03_05_06 { get; set; }
|
||||
/// <summary>
|
||||
/// 影像舱摄像机输入电流
|
||||
/// </summary>
|
||||
public string k01_3_03_05_07 { get; set; }
|
||||
/// <summary>
|
||||
/// 影像舱照相机输入电流
|
||||
/// </summary>
|
||||
public string k01_3_03_05_08 { get; set; }
|
||||
/// <summary>
|
||||
/// 影像舱运行状态码
|
||||
/// </summary>
|
||||
public string k01_3_03_05_09 { get; set; }
|
||||
/// <summary>
|
||||
/// 传感器异常状态码
|
||||
/// </summary>
|
||||
public string k01_3_03_05_10 { get; set; }
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
private void MqttConnectAsync()
|
||||
{
|
||||
try
|
||||
{
|
||||
var mqttFactory = new MqttFactory();
|
||||
//使用Build构建
|
||||
var mqttClientOptions = new MqttClientOptionsBuilder()
|
||||
.WithTcpServer(Server, Port)
|
||||
.WithProtocolVersion(MQTTnet.Formatter.MqttProtocolVersion.V311)
|
||||
.WithClientId("clientid_pascalming")
|
||||
.WithCleanSession(false)
|
||||
.WithKeepAlivePeriod(TimeSpan.FromSeconds(30))
|
||||
.WithCredentials(Username, Password)
|
||||
// .WithWillQualityOfServiceLevel(MQTTnet.Protocol.MqttQualityOfServiceLevel.AtLeastOnce)
|
||||
.Build();
|
||||
|
||||
mqttClient = mqttFactory.CreateMqttClient();
|
||||
//与3.1对比,事件订阅名称和接口已经变化
|
||||
mqttClient.DisconnectedAsync += MqttClient_DisconnectedAsync;
|
||||
mqttClient.ConnectedAsync += MqttClient_ConnectedAsync;
|
||||
mqttClient.ApplicationMessageReceivedAsync += MqttClient_ApplicationMessageReceivedAsync;
|
||||
Task task = mqttClient.ConnectAsync(mqttClientOptions, CancellationToken.None);
|
||||
task.Wait();
|
||||
}
|
||||
catch (AggregateException e)
|
||||
{
|
||||
MessageBox.Show($"Mqtt客户端尝试连接出错:{e.Message}");
|
||||
|
||||
}
|
||||
}
|
||||
//接收订阅消息
|
||||
private Task MqttClient_ApplicationMessageReceivedAsync(MqttApplicationMessageReceivedEventArgs arg)
|
||||
{
|
||||
var payloadString = arg.ApplicationMessage.ConvertPayloadToString();
|
||||
|
||||
|
||||
var item = $"{Environment.NewLine}Topic: {arg.ApplicationMessage.Topic}{Environment.NewLine}Payload: {payloadString} {Environment.NewLine}QoS: {arg.ApplicationMessage.QualityOfServiceLevel}";
|
||||
Message = Encoding.UTF8.GetString(arg.ApplicationMessage.Payload);
|
||||
Swichdata = true;
|
||||
Console.WriteLine($"接收到数据.");
|
||||
return Task.CompletedTask;
|
||||
|
||||
}
|
||||
private Task MqttClient_ConnectedAsync(MqttClientConnectedEventArgs arg)
|
||||
{
|
||||
|
||||
MessageBox.Show($"Mqtt客户端连接成功.");
|
||||
|
||||
link = true;
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
private Task MqttClient_DisconnectedAsync(MqttClientDisconnectedEventArgs arg)
|
||||
{
|
||||
|
||||
// MessageBox.Show($"Mqtt客户端连接断开");
|
||||
|
||||
link = false;
|
||||
// Connect();
|
||||
//link = true;
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
//建立连接
|
||||
public void Connect()
|
||||
{
|
||||
|
||||
if (string.IsNullOrEmpty(Server) && Port == 0)
|
||||
{
|
||||
//Console.WriteLine("IP或端口未赋值");
|
||||
return;
|
||||
}
|
||||
MqttConnectAsync();
|
||||
//link = true;
|
||||
}
|
||||
|
||||
//关闭连接
|
||||
public void DisConnect()
|
||||
{
|
||||
mqttClient.DisconnectAsync();
|
||||
}
|
||||
|
||||
//订阅
|
||||
public void Subscribe(string a)
|
||||
{
|
||||
try
|
||||
{
|
||||
var topicFilter = new MqttTopicFilter { Topic=a};
|
||||
this.mqttClient.SubscribeAsync(topicFilter);
|
||||
// this.mqttClient.SubscribeAsync(topicFilter);
|
||||
MessageBox.Show("订阅成功");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//Console.WriteLine($"Mqtt客户端尝试连接出错:{ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
//取消订阅
|
||||
public void Unsubscribe()
|
||||
{
|
||||
try
|
||||
{
|
||||
string topics = SubscribeName;
|
||||
this.mqttClient.UnsubscribeAsync(topics);
|
||||
//Console.WriteLine("取消订阅成功");
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
//Console.WriteLine($"Mqtt客户端尝试连接出错:{ex.Message}");
|
||||
}
|
||||
}
|
||||
|
||||
//发送数据
|
||||
public void sendData(Root root, int qos)
|
||||
{
|
||||
JSON = JsonConvert.SerializeObject(root);
|
||||
JSON = JSON.Replace("k", "");
|
||||
JSON = JSON.Replace("K", "");
|
||||
JSON = JSON.Replace("_", ".");
|
||||
try
|
||||
{
|
||||
var publish_topic = TOPIC;
|
||||
var publish_msg = JSON;
|
||||
var publish_Qos = MQTTnet.Protocol.MqttQualityOfServiceLevel.AtMostOnce;
|
||||
if (qos == 0) { publish_Qos = MQTTnet.Protocol.MqttQualityOfServiceLevel.AtMostOnce; }
|
||||
else if (qos == 1) { publish_Qos = MQTTnet.Protocol.MqttQualityOfServiceLevel.AtLeastOnce; }
|
||||
else if (qos == 2) { publish_Qos = MQTTnet.Protocol.MqttQualityOfServiceLevel.ExactlyOnce; }
|
||||
var message = new MqttApplicationMessageBuilder()
|
||||
.WithTopic(publish_topic)
|
||||
.WithPayload(publish_msg)
|
||||
.WithQualityOfServiceLevel(publish_Qos)
|
||||
.WithRetainFlag(true)
|
||||
.Build();
|
||||
/* var message = new MqttApplicationMessage()
|
||||
{
|
||||
Topic = publish_topic,
|
||||
Payload = Encoding.Default.GetBytes(publish_msg),
|
||||
QualityOfServiceLevel = MqttQualityOfServiceLevel.AtLeastOnce,
|
||||
Retain = true
|
||||
};*/
|
||||
|
||||
|
||||
|
||||
if (this.mqttClient != null)
|
||||
{
|
||||
Task<MqttClientPublishResult> task = mqttClient.PublishAsync(message, CancellationToken.None);
|
||||
//mqttClient.PublishAsync(message, CancellationToken.None);
|
||||
//Console.WriteLine("发送成功");
|
||||
task.Wait();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// Console.WriteLine($"Mqtt客户端尝试连接出错:{ex.Message}");
|
||||
|
||||
}
|
||||
}
|
||||
public void resendData(string data, int qos)
|
||||
{
|
||||
|
||||
data = data.Replace("k", "");
|
||||
data = data.Replace("K", "");
|
||||
data = data.Replace("_", ".");
|
||||
JSON = data;
|
||||
try
|
||||
{
|
||||
var publish_topic = TOPIC;
|
||||
var publish_msg = JSON;
|
||||
var publish_Qos = MQTTnet.Protocol.MqttQualityOfServiceLevel.AtMostOnce;
|
||||
if (qos == 0) { publish_Qos = MQTTnet.Protocol.MqttQualityOfServiceLevel.AtMostOnce; }
|
||||
else if (qos == 1) { publish_Qos = MQTTnet.Protocol.MqttQualityOfServiceLevel.AtLeastOnce; }
|
||||
else if (qos == 2) { publish_Qos = MQTTnet.Protocol.MqttQualityOfServiceLevel.ExactlyOnce; }
|
||||
var message = new MqttApplicationMessageBuilder()
|
||||
.WithTopic(publish_topic)
|
||||
.WithPayload(publish_msg)
|
||||
.WithQualityOfServiceLevel(publish_Qos)
|
||||
.WithRetainFlag(true)
|
||||
.Build();
|
||||
/* var message = new MqttApplicationMessage()
|
||||
{
|
||||
Topic = publish_topic,
|
||||
Payload = Encoding.Default.GetBytes(publish_msg),
|
||||
QualityOfServiceLevel = MqttQualityOfServiceLevel.AtLeastOnce,
|
||||
Retain = true
|
||||
};*/
|
||||
|
||||
|
||||
|
||||
if (this.mqttClient != null)
|
||||
{
|
||||
Task<MqttClientPublishResult> task = mqttClient.PublishAsync(message, CancellationToken.None);
|
||||
//mqttClient.PublishAsync(message, CancellationToken.None);
|
||||
//Console.WriteLine("发送成功");
|
||||
task.Wait();
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// Console.WriteLine($"Mqtt客户端尝试连接出错:{ex.Message}");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
22
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/Program.cs
Normal file
22
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/Program.cs
Normal file
@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ITFNtest
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// 应用程序的主入口点。
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("ITFNtest")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("ITFNtest")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2023")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
|
||||
[assembly: Guid("510adc33-2429-4eab-a7a0-b8c29ca61632")]
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
||||
//通过使用 "*",如下所示:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
71
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/Properties/Resources.Designer.cs
generated
Normal file
71
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/Properties/Resources.Designer.cs
generated
Normal file
@ -0,0 +1,71 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本: 4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ITFNtest.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 强类型资源类,用于查找本地化字符串等。
|
||||
/// </summary>
|
||||
// 此类是由 StronglyTypedResourceBuilder
|
||||
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||
// (以 /str 作为命令选项),或重新生成 VS 项目。
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources
|
||||
{
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 返回此类使用的缓存 ResourceManager 实例。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((resourceMan == null))
|
||||
{
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ITFNtest.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重写当前线程的 CurrentUICulture 属性,对
|
||||
/// 使用此强类型资源类的所有资源查找执行重写。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
30
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/Properties/Settings.Designer.cs
generated
Normal file
30
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/Properties/Settings.Designer.cs
generated
Normal file
@ -0,0 +1,30 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ITFNtest.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
||||
{
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default
|
||||
{
|
||||
get
|
||||
{
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
Binary file not shown.
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
Binary file not shown.
Binary file not shown.
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/bin/Debug/MQTTnet.xml
Normal file
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/bin/Debug/MQTTnet.xml
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
||||
Binary file not shown.
Binary file not shown.
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/bin/Release/MQTTnet.xml
Normal file
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/ITFNtest/bin/Release/MQTTnet.xml
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
5d004496e8fc2d18109302f3a7c4e7830fb7842a
|
||||
@ -0,0 +1,32 @@
|
||||
D:\code\ITFNtest\ITFNtest\bin\Debug\ITFNtest.exe.config
|
||||
D:\code\ITFNtest\ITFNtest\bin\Debug\ITFNtest.exe
|
||||
D:\code\ITFNtest\ITFNtest\bin\Debug\ITFNtest.pdb
|
||||
D:\code\ITFNtest\ITFNtest\bin\Debug\MQTTnet.dll
|
||||
D:\code\ITFNtest\ITFNtest\bin\Debug\Newtonsoft.Json.dll
|
||||
D:\code\ITFNtest\ITFNtest\bin\Debug\MQTTnet.xml
|
||||
D:\code\ITFNtest\ITFNtest\bin\Debug\Newtonsoft.Json.xml
|
||||
D:\code\ITFNtest\ITFNtest\obj\Debug\ITFNtest.csproj.AssemblyReference.cache
|
||||
D:\code\ITFNtest\ITFNtest\obj\Debug\ITFNtest.csproj.SuggestedBindingRedirects.cache
|
||||
D:\code\ITFNtest\ITFNtest\obj\Debug\ITFNtest.Form1.resources
|
||||
D:\code\ITFNtest\ITFNtest\obj\Debug\ITFNtest.Properties.Resources.resources
|
||||
D:\code\ITFNtest\ITFNtest\obj\Debug\ITFNtest.csproj.GenerateResource.cache
|
||||
D:\code\ITFNtest\ITFNtest\obj\Debug\ITFNtest.csproj.CoreCompileInputs.cache
|
||||
D:\code\ITFNtest\ITFNtest\obj\Debug\ITFNtest.csproj.CopyComplete
|
||||
D:\code\ITFNtest\ITFNtest\obj\Debug\ITFNtest.exe
|
||||
D:\code\ITFNtest\ITFNtest\obj\Debug\ITFNtest.pdb
|
||||
E:\Code\ITFNtest\ITFNtest\bin\Debug\ITFNtest.exe.config
|
||||
E:\Code\ITFNtest\ITFNtest\bin\Debug\ITFNtest.exe
|
||||
E:\Code\ITFNtest\ITFNtest\bin\Debug\ITFNtest.pdb
|
||||
E:\Code\ITFNtest\ITFNtest\bin\Debug\MQTTnet.dll
|
||||
E:\Code\ITFNtest\ITFNtest\bin\Debug\Newtonsoft.Json.dll
|
||||
E:\Code\ITFNtest\ITFNtest\bin\Debug\MQTTnet.xml
|
||||
E:\Code\ITFNtest\ITFNtest\bin\Debug\Newtonsoft.Json.xml
|
||||
E:\Code\ITFNtest\ITFNtest\obj\Debug\ITFNtest.csproj.AssemblyReference.cache
|
||||
E:\Code\ITFNtest\ITFNtest\obj\Debug\ITFNtest.csproj.SuggestedBindingRedirects.cache
|
||||
E:\Code\ITFNtest\ITFNtest\obj\Debug\ITFNtest.Form1.resources
|
||||
E:\Code\ITFNtest\ITFNtest\obj\Debug\ITFNtest.Properties.Resources.resources
|
||||
E:\Code\ITFNtest\ITFNtest\obj\Debug\ITFNtest.csproj.GenerateResource.cache
|
||||
E:\Code\ITFNtest\ITFNtest\obj\Debug\ITFNtest.csproj.CoreCompileInputs.cache
|
||||
E:\Code\ITFNtest\ITFNtest\obj\Debug\ITFNtest.csproj.CopyComplete
|
||||
E:\Code\ITFNtest\ITFNtest\obj\Debug\ITFNtest.exe
|
||||
E:\Code\ITFNtest\ITFNtest\obj\Debug\ITFNtest.pdb
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
7b0e79b704981cb01303ce56d74af1168583aaa4
|
||||
@ -0,0 +1,16 @@
|
||||
D:\code\ITFNtest\ITFNtest\bin\Release\ITFNtest.exe.config
|
||||
D:\code\ITFNtest\ITFNtest\bin\Release\ITFNtest.exe
|
||||
D:\code\ITFNtest\ITFNtest\bin\Release\ITFNtest.pdb
|
||||
D:\code\ITFNtest\ITFNtest\bin\Release\MQTTnet.dll
|
||||
D:\code\ITFNtest\ITFNtest\bin\Release\Newtonsoft.Json.dll
|
||||
D:\code\ITFNtest\ITFNtest\bin\Release\MQTTnet.xml
|
||||
D:\code\ITFNtest\ITFNtest\bin\Release\Newtonsoft.Json.xml
|
||||
D:\code\ITFNtest\ITFNtest\obj\Release\ITFNtest.csproj.AssemblyReference.cache
|
||||
D:\code\ITFNtest\ITFNtest\obj\Release\ITFNtest.csproj.SuggestedBindingRedirects.cache
|
||||
D:\code\ITFNtest\ITFNtest\obj\Release\ITFNtest.Form1.resources
|
||||
D:\code\ITFNtest\ITFNtest\obj\Release\ITFNtest.Properties.Resources.resources
|
||||
D:\code\ITFNtest\ITFNtest\obj\Release\ITFNtest.csproj.GenerateResource.cache
|
||||
D:\code\ITFNtest\ITFNtest\obj\Release\ITFNtest.csproj.CoreCompileInputs.cache
|
||||
D:\code\ITFNtest\ITFNtest\obj\Release\ITFNtest.csproj.CopyComplete
|
||||
D:\code\ITFNtest\ITFNtest\obj\Release\ITFNtest.exe
|
||||
D:\code\ITFNtest\ITFNtest\obj\Release\ITFNtest.pdb
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="MQTTnet" version="4.1.4.563" targetFramework="net472" />
|
||||
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net472" />
|
||||
</packages>
|
||||
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/.signature.p7s
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/.signature.p7s
vendored
Normal file
Binary file not shown.
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/MQTTnet.4.1.4.563.nupkg
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/MQTTnet.4.1.4.563.nupkg
vendored
Normal file
Binary file not shown.
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/net452/MQTTnet.dll
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/net452/MQTTnet.dll
vendored
Normal file
Binary file not shown.
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/net452/MQTTnet.xml
vendored
Normal file
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/net452/MQTTnet.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/net461/MQTTnet.dll
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/net461/MQTTnet.dll
vendored
Normal file
Binary file not shown.
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/net461/MQTTnet.xml
vendored
Normal file
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/net461/MQTTnet.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/net5.0/MQTTnet.dll
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/net5.0/MQTTnet.dll
vendored
Normal file
Binary file not shown.
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/net5.0/MQTTnet.xml
vendored
Normal file
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/net5.0/MQTTnet.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/net6.0/MQTTnet.dll
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/net6.0/MQTTnet.dll
vendored
Normal file
Binary file not shown.
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/net6.0/MQTTnet.xml
vendored
Normal file
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/net6.0/MQTTnet.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/netcoreapp3.1/MQTTnet.dll
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/netcoreapp3.1/MQTTnet.dll
vendored
Normal file
Binary file not shown.
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/netcoreapp3.1/MQTTnet.xml
vendored
Normal file
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/netcoreapp3.1/MQTTnet.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/netstandard1.3/MQTTnet.dll
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/netstandard1.3/MQTTnet.dll
vendored
Normal file
Binary file not shown.
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/netstandard1.3/MQTTnet.xml
vendored
Normal file
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/netstandard1.3/MQTTnet.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/netstandard2.0/MQTTnet.dll
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/netstandard2.0/MQTTnet.dll
vendored
Normal file
Binary file not shown.
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/netstandard2.0/MQTTnet.xml
vendored
Normal file
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/netstandard2.0/MQTTnet.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/netstandard2.1/MQTTnet.dll
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/netstandard2.1/MQTTnet.dll
vendored
Normal file
Binary file not shown.
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/netstandard2.1/MQTTnet.xml
vendored
Normal file
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/netstandard2.1/MQTTnet.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/uap10.0.10240/MQTTnet.dll
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/uap10.0.10240/MQTTnet.dll
vendored
Normal file
Binary file not shown.
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/uap10.0.10240/MQTTnet.pri
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/uap10.0.10240/MQTTnet.pri
vendored
Normal file
Binary file not shown.
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/uap10.0.10240/MQTTnet.xml
vendored
Normal file
1582
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/lib/uap10.0.10240/MQTTnet.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/nuget.png
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/MQTTnet.4.1.4.563/nuget.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/.signature.p7s
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/.signature.p7s
vendored
Normal file
Binary file not shown.
20
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/LICENSE.md
vendored
Normal file
20
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/LICENSE.md
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2007 James Newton-King
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
||||
this software and associated documentation files (the "Software"), to deal in
|
||||
the Software without restriction, including without limitation the rights to
|
||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
||||
the Software, and to permit persons to whom the Software is furnished to do so,
|
||||
subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
||||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
||||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/Newtonsoft.Json.13.0.3.nupkg
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/Newtonsoft.Json.13.0.3.nupkg
vendored
Normal file
Binary file not shown.
71
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/README.md
vendored
Normal file
71
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/README.md
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
#  Json.NET
|
||||
|
||||
[](https://www.nuget.org/packages/Newtonsoft.Json/)
|
||||
[](https://dev.azure.com/jamesnk/Public/_build/latest?definitionId=8)
|
||||
|
||||
Json.NET is a popular high-performance JSON framework for .NET
|
||||
|
||||
## Serialize JSON
|
||||
|
||||
```csharp
|
||||
Product product = new Product();
|
||||
product.Name = "Apple";
|
||||
product.Expiry = new DateTime(2008, 12, 28);
|
||||
product.Sizes = new string[] { "Small" };
|
||||
|
||||
string json = JsonConvert.SerializeObject(product);
|
||||
// {
|
||||
// "Name": "Apple",
|
||||
// "Expiry": "2008-12-28T00:00:00",
|
||||
// "Sizes": [
|
||||
// "Small"
|
||||
// ]
|
||||
// }
|
||||
```
|
||||
|
||||
## Deserialize JSON
|
||||
|
||||
```csharp
|
||||
string json = @"{
|
||||
'Name': 'Bad Boys',
|
||||
'ReleaseDate': '1995-4-7T00:00:00',
|
||||
'Genres': [
|
||||
'Action',
|
||||
'Comedy'
|
||||
]
|
||||
}";
|
||||
|
||||
Movie m = JsonConvert.DeserializeObject<Movie>(json);
|
||||
|
||||
string name = m.Name;
|
||||
// Bad Boys
|
||||
```
|
||||
|
||||
## LINQ to JSON
|
||||
|
||||
```csharp
|
||||
JArray array = new JArray();
|
||||
array.Add("Manual text");
|
||||
array.Add(new DateTime(2000, 5, 23));
|
||||
|
||||
JObject o = new JObject();
|
||||
o["MyArray"] = array;
|
||||
|
||||
string json = o.ToString();
|
||||
// {
|
||||
// "MyArray": [
|
||||
// "Manual text",
|
||||
// "2000-05-23T00:00:00"
|
||||
// ]
|
||||
// }
|
||||
```
|
||||
|
||||
## Links
|
||||
|
||||
- [Homepage](https://www.newtonsoft.com/json)
|
||||
- [Documentation](https://www.newtonsoft.com/json/help)
|
||||
- [NuGet Package](https://www.nuget.org/packages/Newtonsoft.Json)
|
||||
- [Release Notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
|
||||
- [Contributing Guidelines](https://github.com/JamesNK/Newtonsoft.Json/blob/master/CONTRIBUTING.md)
|
||||
- [License](https://github.com/JamesNK/Newtonsoft.Json/blob/master/LICENSE.md)
|
||||
- [Stack Overflow](https://stackoverflow.com/questions/tagged/json.net)
|
||||
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net20/Newtonsoft.Json.dll
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net20/Newtonsoft.Json.dll
vendored
Normal file
Binary file not shown.
10393
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net20/Newtonsoft.Json.xml
vendored
Normal file
10393
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net20/Newtonsoft.Json.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net35/Newtonsoft.Json.dll
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net35/Newtonsoft.Json.dll
vendored
Normal file
Binary file not shown.
9541
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net35/Newtonsoft.Json.xml
vendored
Normal file
9541
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net35/Newtonsoft.Json.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net40/Newtonsoft.Json.dll
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net40/Newtonsoft.Json.dll
vendored
Normal file
Binary file not shown.
9741
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net40/Newtonsoft.Json.xml
vendored
Normal file
9741
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net40/Newtonsoft.Json.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net45/Newtonsoft.Json.dll
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net45/Newtonsoft.Json.dll
vendored
Normal file
Binary file not shown.
11363
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net45/Newtonsoft.Json.xml
vendored
Normal file
11363
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net45/Newtonsoft.Json.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net6.0/Newtonsoft.Json.dll
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net6.0/Newtonsoft.Json.dll
vendored
Normal file
Binary file not shown.
11325
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net6.0/Newtonsoft.Json.xml
vendored
Normal file
11325
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/net6.0/Newtonsoft.Json.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
11051
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/netstandard1.0/Newtonsoft.Json.xml
vendored
Normal file
11051
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/netstandard1.0/Newtonsoft.Json.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
11173
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/netstandard1.3/Newtonsoft.Json.xml
vendored
Normal file
11173
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/netstandard1.3/Newtonsoft.Json.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Binary file not shown.
11338
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/netstandard2.0/Newtonsoft.Json.xml
vendored
Normal file
11338
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/lib/netstandard2.0/Newtonsoft.Json.xml
vendored
Normal file
File diff suppressed because it is too large
Load Diff
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/packageIcon.png
vendored
Normal file
BIN
beixiangjiekou/ITFNtest(1)/ITFNtest/packages/Newtonsoft.Json.13.0.3/packageIcon.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.7 KiB |
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user