Created
December 28, 2017 07:21
-
-
Save ajeebkp23/52cda55c5b42abbd1ca054514836dd84 to your computer and use it in GitHub Desktop.
eWon eSync Update Tag Value Reqeust From CSharp C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Net; | |
using(WebClient client = new WebClient()) | |
{ | |
var reqparm = new System.Collections.Specialized.NameValueCollection(); | |
string ipAdddressOfeWon = "192.168.1.68"; | |
string baseUrl = $"http://{ipAdddressOfeWon}/rcgi.binrcgi.bin/UpdateTagForm"; | |
reqparm.Add("TagName", "Br1_Cls_temp"); | |
reqparm.Add("TagValue", 136); | |
byte[] responsebytes = client.UploadValues(baseUrl, "POST", reqparm); | |
string responsebody = Encoding.UTF8.GetString(responsebytes); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment