Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ajeebkp23/52cda55c5b42abbd1ca054514836dd84 to your computer and use it in GitHub Desktop.
Save ajeebkp23/52cda55c5b42abbd1ca054514836dd84 to your computer and use it in GitHub Desktop.
eWon eSync Update Tag Value Reqeust From CSharp C#
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