BoschSmartHomeSharp 1.0.1

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

// Install BoschSmartHomeSharp as a Cake Tool
#tool nuget:?package=BoschSmartHomeSharp&version=1.0.1                

BoschSmartHomeSharp

C# wrapper class for the Bosch SmartHome local REST API (https://github.com/BoschSmartHome/bosch-shc-api-docs)

(work in progress)

requires self-signed client certificate to talk with the Bosch smart home controller. When using the default "ApiClient" constructor, the library expects the PFX to be provided as file "client_pfx.PFX" (which should be present in the executables directory) and protected with a password (the ApiClient constructor expects '12345' by default). There are also ohter ApiClient constructors available if you want to pass in your own custom certificate file path and/or password. The certificate as string, and the password of your smart home controller encoded as base64, are both needed in order to register to the controller as new client app (and to create trust to your client cert).

BoschSmartHomeSharp.ApiClient apiclient;
(...)
certFile = Path.Join(Directory.GetCurrentDirectory(), "client_pfx.pfx");
apiclient = new BoschSmartHomeSharp.ApiClient("192.168.0.10", certFile, "myCertPwd123");
(...)
private void registerClient() // register new client
{
    string clientCert = "\"-----BEGIN CERTIFICATE-----\\rMIID(...)A==\\r-----END CERTIFICATE-----\"";
    bool result = apiclient.registerDevice("c29tZXRoaW5nMTIzIQ==", clientCert, "myNewBoschClientApp");
    if (!result)
        Debug.WriteLine("registration not successful");
    else
        Debug.WriteLine("registration successful - yay!! :)");
}



List<device> allDevices = apiclient.getDevices();
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 358 8/20/2021
1.0.1 347 8/19/2021
1.0.0 336 8/18/2021