var httpWebRequest = (HttpWebRequest)WebRequest.Create("http://www.1weilian.com:8750/mtInterface/realTime/getRealTime");

httpWebRequest.ContentType = "application/json";

httpWebRequest.Method = "POST";


using (var streamWriter = new StreamWriter(httpWebRequest.GetRequestStream()))

{

    string json = "{\"clientId\":\"66675e88c7c64bea91f649e04xxxxxx\"," +

"\"rows\":\"2\","+

                  "\"page\":\"0\"}";


    streamWriter.Write(json);

    streamWriter.Flush();

    streamWriter.Close();

}


var httpResponse = (HttpWebResponse)httpWebRequest.GetResponse();

using (var streamReader = new StreamReader(httpResponse.GetResponseStream()))

{

    var result = streamReader.ReadToEnd();

}


2021年03月01日

4代TH4XW/TH4XG仪表二次开发UDP通讯python demo

上一篇

下一篇

4代TH4XW/TH4XG 调用易维联云平台api的C# demo

添加时间: