You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.
Hi James,
according to example in github, i'm trying to get the bandwith of current network:
var optimalSpeed = 50000;
var connectionTypes = CrossConnectivity.Current.ConnectionTypes;
var speeds = CrossConnectivity.Current.Bandwidths;
if (!connectionTypes.Any(speeds => speeds > optimalSpeed))// Limite segnale per TX
{
stopWS = true;
await DisplayAlert("Potenza del Segnale SCARSO!", "Spostarsi vicino all'AP", "CHIUDI");
return;
}
But this doesn't work.
The error is this:
Errore CS0019 Non è possibile applicare l'operatore '>' a operandi di tipo 'ConnectionType' e 'int'
Thanks in advance
Nicola
Bug Information
Version Number of Plugin: 3.2.0
Device Tested On: M3 device with Android 10
Version of VS: 16.8.6
Version of Xamarin: 16.8.000.262 (d16-8@4d60f9c)
Steps to reproduce the Behavior
var optimalSpeed = 50000;
var connectionTypes = CrossConnectivity.Current.ConnectionTypes;
var speeds = CrossConnectivity.Current.Bandwidths;
if (!connectionTypes.Any(speeds => speeds > optimalSpeed))// Limite segnale per TX
{
stopWS = true;
await DisplayAlert("Potenza del Segnale SCARSO!", "Spostarsi vicino all'AP", "CHIUDI");
return;
}
The text was updated successfully, but these errors were encountered: