change post url
This commit is contained in:
parent
474857db7f
commit
9ecf286483
|
@ -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<PublicCommResponse>(responseBody);
|
||||
|
|
|
@ -6,8 +6,13 @@
|
|||
<Nullable>enable</Nullable>
|
||||
<UseWPF>true</UseWPF>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<ApplicationIcon>Topuino.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Content Include="Topuino.ico" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
|
||||
</ItemGroup>
|
||||
|
|
Loading…
Reference in New Issue