EspTouchSmartConfigXamarin 1.0.3
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package EspTouchSmartConfigXamarin --version 1.0.3
NuGet\Install-Package EspTouchSmartConfigXamarin -Version 1.0.3
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EspTouchSmartConfigXamarin" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EspTouchSmartConfigXamarin --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: EspTouchSmartConfigXamarin, 1.0.3"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EspTouchSmartConfigXamarin as a Cake Addin
#addin nuget:?package=EspTouchSmartConfigXamarin&version=1.0.3
// Install EspTouchSmartConfigXamarin as a Cake Tool
#tool nuget:?package=EspTouchSmartConfigXamarin&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
EspTouch Binding Library for Xamarin iOS and Android
This is a porting of EsptouchForIOS and EsptouchForAndroid
INSTALL
Please use NuGet to installa the library in your Xamarin.iOS, Xamarin.Droid or Xamarin.Forms project. This Library does not support Windows Phone yet.
Install-Package EspTouchSmartConfigXamarin
USE
XAMARIN FORMS
You need to use Dependency Service to get a Platform specific implementation of the SmartConfigTask
PCL Project
Define the Interface
public interface ISmartConfigHelper
{
ISmartConfigTask CreatePlatformTask();
}
IOS Project
using System;
using EspTouchBindingExample_Forms;
using EspTouchMultiPlatformLIbrary;
using Xamarin.Forms;
[assembly: Dependency(typeof(EspTouchBindingExample_Forms.iOS.SmartConfig_iOS))]
namespace EspTouchBindingExample_Forms.iOS
{
public class SmartConfig_iOS : ISmartConfigHelper
{
public SmartConfig_iOS()
{
}
public ISmartConfigTask CreatePlatformTask()
{
return new SmartConfigTask_iOS();
}
}
}
ANDROID Project
using System;
using EspTouchMultiPlatformLIbrary;
using Xamarin.Forms;
[assembly: Dependency(typeof(EspTouchBindingExample_Forms.Droid.SmartConfig_Droid))]
namespace EspTouchBindingExample_Forms.Droid
{
public class SmartConfig_Droid:ISmartConfigHelper
{
public SmartConfig_Droid()
{
}
public ISmartConfigTask CreatePlatformTask()
{
return new SmartConfigTask_Droid();
}
}
}
Instantiate the ISmartConfigTask and use it
You can now instantiate the class in your code (code behind or viewmodel)
String Ssid = "network ssid";
String Bssid = "network bssid";
String Passphrase = "network passphrase"
ISmartConfigTask smartconfig;
smartconfig = DependencyService.Get<ISmartConfigHelper>().CreatePlatformTask();
smartconfig.SetSmartConfigTask(Ssid, Bssid, Passphrase);
await Task.Run(() =>
{
var result = smartconfig.executeForResult();
//handle your result
});
USING IN SINGLE PROJECTS
XAMARIN IOS
ESPTouchTask ett = new ESPTouchTask("<SSID>", "<BSSID>", "<PASSPHRASE>");
var result = ett.ExecuteForResult;
XAMARIN DROID
EsptouchTask mEsptouchTask = new EsptouchTask("<SSID>", "<BSSID>", "<PASSPHRASE>", true, Application.Context);
IEsptouchResult result = mEsptouchTask.ExecuteForResult();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
MonoAndroid | monoandroid71 is compatible. |
Xamarin.iOS | xamarinios10 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.