xamarin / Essentials

Xamarin.Essentials is no longer supported. Migrate your apps to .NET MAUI, which includes Maui.Essentials.
https://aka.ms/xamarin-upgrade
Other
1.52k stars 505 forks source link

[Question] WIFI devices discovery and connection processes #2066

Open PavelRPavlov opened 1 year ago

PavelRPavlov commented 1 year ago

We have a custom hardware device which acts as an WIFI Access Point and we have a XamarinForms application which should connect to the hardware device and communicate to it using TCP protocol. Now we want to automate the device discovery and device connection processes on the application side. For that we tried using Xamarin.Essentials package and its Connectivity features but it does not allow controlling the WIFI devices discovery process. It only provides you with information about the connection you may have.

@jamesmontemagno So my question is, does XamarinForms provide any tools for controlling the WIFI device discovery process from the shared codebase?

Since the application already knows the network name and the password for it, I was wondering if there is a way to use that information to automate how the app connects to the hardware device. Ideally we would like to make it unnoticeable for the end user. I know there are different limitations around WIFI scans on Android and similar may apply for iOS and this is why I am asking if there is cross platform tooling around this functionality.