From 9ecf28648302e7bd7e69b7499b992fe39aab0ff8 Mon Sep 17 00:00:00 2001 From: Vector Von Date: Tue, 14 Jun 2022 20:43:29 +0800 Subject: [PATCH] change post url --- PublicComm.cs | 2 +- Topuino_Client_Windows.csproj | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/PublicComm.cs b/PublicComm.cs index 6319fcb..e1383a9 100644 --- a/PublicComm.cs +++ b/PublicComm.cs @@ -16,7 +16,7 @@ namespace Topuino_Client_Windows try { HttpContent content = new FormUrlEncodedContent(data); - HttpResponseMessage response = await client.PostAsync("http://127.0.0.1:7766/putdata", content); + HttpResponseMessage response = await client.PostAsync("https://iot.vvzero.com/topuino/putdata", content); response.EnsureSuccessStatusCode(); string responseBody = await response.Content.ReadAsStringAsync(); PublicCommResponse? respData = JsonConvert.DeserializeObject(responseBody); diff --git a/Topuino_Client_Windows.csproj b/Topuino_Client_Windows.csproj index d10e8fa..95dd634 100644 --- a/Topuino_Client_Windows.csproj +++ b/Topuino_Client_Windows.csproj @@ -6,8 +6,13 @@ enable true true + Topuino.ico + + + +