Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I have one esp8266(arduino) project, at the first time, device start as a Access point, so the mobile can connect via wifi to setup my network name and password and save on the device, so the next time device can connect to the network.

So, everything is fine, i connect to access point and tested webserver and posts with mobile browser.

Now i want to migrate the post/get to xamarin forms app, but i cant post with xamarin on iphone.

HttpClient client = new HttpClient();
var result = await client.GetAsync("http://192.168.144.2/foo");

exception: "The Internet connection appears to be offline."

Obviously i dont have internet connection, just want post to access point via local address(192.168.x.x), how can i workaround.

Thanks

Edited: VS 2019 16.8.3 Xamarin forms 5.0.0.1829-pre6 Info.plist

<key>NSAppTransportSecurity</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/> 
    </dict>

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
415 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...