19 lines
759 B
C#
Raw Normal View History

2024-11-26 13:45:28 +08:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Yunda.SOMS.OperationsMainSiteGatewayServer.TcpSocket.TestData
{
public class SimulateData
{
public static byte[] SendProductionInformation()
{
string msg = "{\r\n \"station\":\"Bengbu_South_Station\",\r\n \"device\":\"KX211\",\r\n\"timestamp\":\"2024-10-09 12:12:12\",\r\n\"reason\":1,\r\n\"param\":{\r\n \"type\":\" Production_Information\",\r\n\"paras\":\r\n {\r\n \"number\":\"202400xxxxxx\",\r\n \"date\":\"2024-10-09\",\r\n}\r\n}\r\n}\r\n";
byte[] utf8Bytes = System.Text.Encoding.UTF8.GetBytes(msg);
return utf8Bytes;
}
}
}