Created
February 5, 2020 18:40
-
-
Save andreas-nesheim/5d14dc78536fc3c3056e80300ea214bd to your computer and use it in GitHub Desktop.
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
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