XserverIoTCommon 10.2.0.15

There is a newer version of this package available.
See the version list below for details.
dotnet add package XserverIoTCommon --version 10.2.0.15                
NuGet\Install-Package XserverIoTCommon -Version 10.2.0.15                
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="XserverIoTCommon" Version="10.2.0.15" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add XserverIoTCommon --version 10.2.0.15                
#r "nuget: XserverIoTCommon, 10.2.0.15"                
#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 XserverIoTCommon as a Cake Addin
#addin nuget:?package=XserverIoTCommon&version=10.2.0.15

// Install XserverIoTCommon as a Cake Tool
#tool nuget:?package=XserverIoTCommon&version=10.2.0.15                

Required UWP Target settings:

Min version: Windows 10 Fall Creators Update (10.0; Build 16299)

Required Xserver.IoT firmware:

Min version: 10.2

Required UWP Capabilities:

<Capability Name="internetClient" />
<Capability Name="internetClientServer"/>
<Capability Name="privateNetworkClientServer"/>

Authentication class:

// Log in to Xserver.IoT
public static async Task<Result> Login(string UserName, string Password, string ServiceIP = "localhost")

example: var res = await Authentication.Login("operator", "operator", "192.168.100.15");

// Gets UserId object 
public static Models.Com.Common.IUserId GetComServiceUserId()

example:

IActiveAlarms AlarmRequest = new IActiveAlarms();
    
AlarmRequest.IUserId = Authentication.GetComServiceUserId();
AlarmRequest.NumberOfItems = 0; //No Limit

var resultackalarm = await RestAPI.RestClientPOST("/com/alarms/getactivealarms", ServiceName.Com, AlarmRequest);

RestAPI methods:

Use Xserver.IoT.Connectivity.Interface class REST API methods.
More technical details are in the Xserver.IoT.Connectivity.Interface documentation.

Realtime objects and methods:

public List<ISourceInfo> ListOfSources { get; internal set; }
public List<ISourceQuantitiesInfo> ListOfQuantities { get; internal set; }

//Uploads ListOfSources and ListOfQuantities objects from Xserver.Com service
public async Task<Result> GetSourcesQuantities()

//Gets SourceId and QuantityId (error return value null)
public QuantityInfo GetIds(string SourceName, string QuantityName)

//Gets value of the quantity of the Source (error return value null)
public async Task<QuantityValueItem> GetValue(string SourceName, string QuantityName)

//Gets values of the quantities of the Sources (error return value null)
public async Task<List<QuantityValueItem>> GetValues(List<QuantitiesRequestItem> QuantitiesRequestList)

//Writes value of the quantity of the Source (error return value null)
public async Task<QuantityWriteResult> WriteValue(string SourceName, string QuantityName, double WriteValue)

/// Adds new values to PeriodLog
public async Task<Result> PeriodicLogAddNewValues(List<LogItem> LogItems)

/// Adds new values to DifferenceLog    
public async Task<Result> DifferenceLogAddNewValues(List<EventItem> LogItems)

EventLogging methods:

//Adds a new event into the EventLog
public static void AddLogMessage(MessageType MessageType, string Message)

HttpRestServerService methods:

/// If true then REST HTTP server is running
public bool IsStartHttpServer { get; set; }

/// Start and Initialize Http server
public async Task<IO.SimpleHttpServer.Result> HttpRESTServerStart()

/// Stop Http server   
public async Task<IO.SimpleHttpServer.Result> HttpRESTServerStop()

/// Send response to client 
public async Task<IO.SimpleHttpServer.Result> ServerResponse(HTTPStatusCodes HTTPStatus, Windows.Storage.Streams.IOutputStream OStream, string SendData)

OnboardTask methods:

/// Gets Onboard Task config    
public static async Task<Result> GetConfig()

/// Gets Onboard Task properties
public static async Task<Result> GetProperties()
 
/// Saves new onboard task config to Onboard Storage
public static async Task<Result> SaveConfig(string NewConfig)

/// Saves new onboard task properties to Onboard Storage
public static async Task<Result> SaveProperties(string NewProperties)

DeviceTwin methods:

/// Gets Desired properties of Device Twin
public static async Task<ResultDesiredProperties> GetDesiredProperties()

/// Gets Reported properties of Device Twin
public static async Task<ResultReportedProperties> GetReportedProperties()

/// Saves new ReportedProperties
public static async Task<Result> SaveReportedProperties(List<DeviceTwinProperty> NewReportedProperties)
Product Compatible and additional computed target framework versions.
Universal Windows Platform uap was computed.  uap10.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on XserverIoTCommon:

Package Downloads
IoTServerInsertionAPI

The insertion API allows the IoT Server to send data to other systems.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
10.3.4 224 7/5/2023
10.3.2 2,418 11/25/2021
10.2.3.1 379 10/7/2021
10.2.1.5 394 3/25/2021
10.2.1.4 411 3/24/2021
10.2.1.3 390 3/18/2021
10.2.1.2 389 3/4/2021
10.2.1.1 393 2/23/2021
10.2.1 398 2/11/2021
10.2.0.16 436 11/25/2020
10.2.0.15 491 11/19/2020
10.2.0.14 478 11/19/2020
10.2.0.13 435 10/28/2020
10.2.0.12 475 10/27/2020
10.2.0.11 432 10/27/2020
10.2.0.10 448 10/27/2020
10.2.0.9 481 10/21/2020
10.2.0.7 516 9/29/2020
10.2.0.5 463 9/24/2020
10.2.0.4 500 9/17/2020
10.2.0.3 528 9/16/2020
10.1.0.7 516 6/25/2020
10.1.0.6 591 6/24/2020
10.1.0.4 493 5/21/2020
10.1.0.2 535 5/19/2020