Brainboxes.IO 1.5.0.2

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

// Install Brainboxes.IO as a Cake Tool
#tool nuget:?package=Brainboxes.IO&version=1.5.0.2
        //The following factory method will connect to any brainboxes ED device
        //and return the correct object instance for the device
        //The create method automatically open a connection to the device
        using (EDDevice ed = EDDevice.Create("192.168.0.158") )
        {
            ed.Label = "Pump Control in Cabinet 3"; //give it a label, useful for debugging

            //first 3 inputs are connected to button switches
            IOList<IOLine> buttons = ed.Inputs.Take(3).AsIOList();
            buttons.Label = "Console Buttons"; //optionally label group, useful for debugging
            
            //first 3 outputs are connected to lights
            IOList<IOLine> lights = ed.Outputs.Take(3).AsIOList();

            //attach event handler to falling edge of all buttons
            //when the button is turned on the corresponding light will come on
            buttons.IOLineFallingEdge += (line, device, changeType) => 
            { 
                Console.WriteLine("Button " + line.IONumber + " Pressed"); 
                lights[line.IONumber].Value = 1; //turn on light
            };

            //attach event handler to rising edge of all buttons
            //when the button is released the corresponding light will turn off
            buttons.IOLineRisingEdge += (line, device, changeType) =>
            {
                Console.WriteLine("Button " + line.IONumber + " Released");
                lights[line.IONumber].Value = 0; //turn off light
            };

            //initialise all lights off
            lights.Values = 0;

            Console.WriteLine("Press any key to exit...");
            Console.ReadKey();

            //close connections after a key press, automatic disconnect and dispose outside of using block
        }
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 netcoreapp1.0 was computed.  netcoreapp1.1 was computed.  netcoreapp2.0 is compatible.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard1.4 is compatible.  netstandard1.5 was computed.  netstandard1.6 was computed.  netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net20 is compatible.  net35 was computed.  net40 is compatible.  net403 was computed.  net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen30 was computed.  tizen40 was computed.  tizen60 was computed. 
Universal Windows Platform uap was computed.  uap10.0 is compatible. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 2.0

    • No dependencies.
  • .NETFramework 2.0

    • No dependencies.
  • .NETFramework 4.0

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETStandard 1.4

    • No dependencies.
  • .NETStandard 2.0

    • No dependencies.
  • UAP 10.0

    • 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.

Version Downloads Last updated
1.6.6 7,704 2/15/2022
1.6.5 133 2/9/2022
1.6.0 1,827 10/27/2021
1.5.1.1 1,894 9/28/2021
1.5.1 3,369 3/2/2020
1.5.0.9 1,202 11/10/2019
1.5.0.7 3,692 3/16/2019
1.5.0.6 1,380 9/21/2018
1.5.0.5 1,628 1/25/2018
1.5.0.4 1,758 12/14/2017
1.5.0.3 1,325 12/14/2017
1.5.0.2 1,366 12/6/2017
1.5.0.1 2,735 9/23/2017
1.5.0 1,286 9/15/2017
1.4.0.1 1,870 7/9/2016
1.2.4 1,649 10/28/2015
1.2.1 1,472 9/20/2015
1.2.0 1,692 4/21/2015
1.1.0 2,291 12/23/2014
1.0.5 2,143 12/22/2014
1.0.4 1,914 12/3/2014

1.5.0.2 30/11/17
*Updated analog event handler to support a list of IOList objects
1.5.0.1 23/09/16
* Added support for .NET Core and .NET Standard
* Fixed bug with ED-549 event handling
1.5.0.0 15/09/16
* Added analog functionality including events for support for ED-549 (ASCII only) and ED-560 (ASCII and Modbus)
* Changed handling of isAvailble, now only checks for isAvailable if isConnected is false
* Changed handling of isConnected, is now locked so multiple threads cannot access this so it does not send multiple pings
* Fixed bug with deviceStatusChangedEvent
1.4.0.1 09/07/16
* Added Universal windows platform dll's to allow compatibility with Windows IoT Core, Windows Store and XBOX
* First official release to coincide with RS DesignSpark Youtube video demo of Brainboxes API's running on Windows IoT Core and Raspberry Pi 3
1.2.4.0 28/10/15
* Bug with ED-527 event handling reported by Frank Guchelaar and fixed
1.2.1.0 20/09/15
* Nuget release Ethernet to Serial devices with many stability and performance fixes
1.2.0.0 21/04/15
* Initial Nuget release to include Ethernet to serial
1.1.12.0 07/09/15
* Improved handling of IsAvailable for when a route to the device cannot be found, improved handling of IsConnected to determine if the connection is still open
1.1.11.0 28/08/15
* Corrected ISerialProtocol to implement IClonable so that assigning a protocol to a multiport product was handled correctly
1.1.9.0 02/03/15 - beta
* Added IsAvailable property to Device and Connection and a call back to be notified on change of device status
* Added factory method to Connection (Connection.Create)
* Change constructor for TCPConnection to include ConnectionTimeout parameter
1.0.5.0 22/12/14
* Added counter functionality to API for IOLines and change handlers
1.0.4.0
* Changed handling of network and serial streams, by wrapping them into a BBStream to make them work in a consistent way, stream is now flushed before every sendcommand
* Fixed issue with Timeout not being correctly set
* Fixed FactoryRest and Restart command