Skip to content

Instantly share code, notes, and snippets.

@andreas-nesheim
Created February 5, 2020 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreas-nesheim/5d14dc78536fc3c3056e80300ea214bd to your computer and use it in GitHub Desktop.
Save andreas-nesheim/5d14dc78536fc3c3056e80300ea214bd to your computer and use it in GitHub Desktop.
public async Task SetDevice(Device device, int temperature, int operation, int status)
{
var requestUrl = $"uds/deviceControlForOpenApi?deviceId={device.deviceId}&holdTemp={temperature}&operation={operation}&status={status}";
var response = await httpClient.PostAsync(requestUrl, stringData);
var result = await response.Content.ReadAsStringAsync();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment