FluxLector.Client
0.1.1
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Framework 4.6.1
This package targets .NET Framework 4.6.1. The package is compatible with this framework or higher.
dotnet add package FluxLector.Client --version 0.1.1
NuGet\Install-Package FluxLector.Client -Version 0.1.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="FluxLector.Client" Version="0.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FluxLector.Client" Version="0.1.1" />
<PackageReference Include="FluxLector.Client" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FluxLector.Client --version 0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FluxLector.Client, 0.1.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.
#:package FluxLector.Client@0.1.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=FluxLector.Client&version=0.1.1
#tool nuget:?package=FluxLector.Client&version=0.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FluxLector.Client
Wrapper .NET oficial para Flux Lector — lectura automática de medidores de gas a partir de una foto.
Instalación
dotnet add package FluxLector.Client
Uso
using FluxLector.Client;
using var cliente = new FluxLectorClient("https://fluxlector.integralbyte.com:8800", "TU_TOKEN");
await using var archivo = File.OpenRead("medidor.jpg");
var resultado = await cliente.LeerAsync(archivo, "medidor.jpg", "jpg");
Console.WriteLine($"{resultado.Lectura} (confiabilidad {resultado.Confiabilidad:P1})");
// 2592.491 (confiabilidad 99.86%)
resultado es un LecturaResultado:
public sealed class LecturaResultado
{
public string NombreArchivo { get; init; } // "medidor.jpg"
public long TamanoBytes { get; init; } // 113167
public int TiempoProcesoMs { get; init; } // 201
public string Lectura { get; init; } // "2592.491"
public double Confiabilidad { get; init; } // 0.9986
public bool Duplicado { get; init; } // true si ya habías enviado este mismo archivo antes
}
Errores
LeerAsync lanza una excepción tipada en vez de un código HTTP crudo:
| Excepción | Caso |
|---|---|
TokenInvalidoException |
Token ausente, inválido o revocado (401) |
LimiteExcedidoException |
Límite de consumo de tu nivel alcanzado (429) |
ArchivoInvalidoException |
Campo faltante, formato no soportado, o archivo > 20 MB (400/413) |
LecturaNoDetectadaException |
Foto válida, pero no se detectó una lectura con suficiente confianza (422) |
Todas heredan de FluxLectorException, con StatusCode y Message.
Compatibilidad
net461 y net8.0 en el mismo paquete.
Documentación completa
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Framework | net461 is compatible. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6.1
- System.Net.Http.Json (>= 8.0.1)
- System.Text.Json (>= 8.0.5)
-
net8.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 |
|---|---|---|
| 0.1.1 | 123 | 10/8/2026 |