HeboTech.ATLib
0.0.1-alpha-2
This is a prerelease version of HeboTech.ATLib.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
The owner has unlisted this package.
This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package HeboTech.ATLib --version 0.0.1-alpha-2
NuGet\Install-Package HeboTech.ATLib -Version 0.0.1-alpha-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="HeboTech.ATLib" Version="0.0.1-alpha-2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HeboTech.ATLib --version 0.0.1-alpha-2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: HeboTech.ATLib, 0.0.1-alpha-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 HeboTech.ATLib as a Cake Addin
#addin nuget:?package=HeboTech.ATLib&version=0.0.1-alpha-2&prerelease
// Install HeboTech.ATLib as a Cake Tool
#tool nuget:?package=HeboTech.ATLib&version=0.0.1-alpha-2&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ATLib
ATLib is a C# AT command library that abstracts away the commands and makes it easy to communicate with modems.
Hayes command set (commonly known as AT commands) is a command set commonly used in modems. Read more about it at Wikipedia
ATLib is just in the beginning. Currently only a few commands are implemented, but more will come.
Usage
Install as NuGet package
dotnet add package HeboTech.ATLib
Using a serial port to communicate with a modem is easy:
// Create and connect to serial port
SerialPort serialPort = new SerialPort(); //Use an overload to pass in your settings
serialPort.Open();
// Pipe the serial port stream through a duplex pipe
IDuplexPipe duplexPipe = StreamConnection.GetDuplex(serialPort.BaseStream); // See note below
// Pass in the pipe to the communicator and start communicating!
ICommunicator<string> comm = new Communicator(duplexPipe);
// Send a ping to the modem
var initializeResult = await comm.InitializeAsync();
// Get battery status
var batteryStatus = await comm.GetBatteryStatusAsync();
Note:
IDuplexPipe is an interface in System.IO.Pipelines. Microsoft and ATLib doesn't come with an implementations for this, but Pipelines.Sockets.Unofficial has one that works great!
Install it with
dotnet add package Pipelines.Sockets.Unofficial
Product | Versions 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.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
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.
-
.NETStandard 2.1
- Superpower (>= 2.3.0)
- System.IO.Pipelines (>= 4.7.2)
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 |
---|---|---|
7.1.0-beta2 | 95 | 1/30/2024 |
7.1.0-beta1 | 63 | 1/30/2024 |
7.0.0 | 247 | 1/3/2024 |
7.0.0-RC3 | 156 | 11/19/2023 |
7.0.0-RC2 | 98 | 11/6/2023 |
7.0.0-RC1 | 73 | 11/2/2023 |
6.0.2 | 289 | 7/15/2023 |
6.0.1 | 152 | 6/4/2023 |
6.0.0 | 164 | 5/7/2023 |
5.0.0 | 196 | 4/14/2023 |
4.2.0 | 1,095 | 9/18/2022 |
4.1.0 | 559 | 4/17/2022 |
4.0.0 | 425 | 4/17/2022 |
3.1.0 | 493 | 7/13/2021 |
3.0.0 | 385 | 6/30/2021 |
2.0.1 | 442 | 4/24/2021 |
2.0.0 | 334 | 4/10/2021 |
1.0.0 | 347 | 4/1/2021 |
0.0.8 | 477 | 1/17/2021 |
0.0.7 | 486 | 9/2/2020 |