lb_assets 1.2.0 copy "lb_assets: ^1.2.0" to clipboard
lb_assets: ^1.2.0 copied to clipboard

Logbot assets service to manage assets (plants, groups, devices, gateways, gateway models, device models, device models metrics, licenses, manufacturers, ... etc.)

lb_assets #

The lb_assets package provides APIs and data models for managing Logbot assets — including plants, groups, devices, gateways, gateway models, device models, metrics, licenses, and manufacturers.

This package is part of the Logbot Flutter SDK.
It is automatically generated using the OpenAPI Generator to ensure up-to-date client APIs that align with the Logbot backend.


✨ Features #

  • Manage and query assets such as devices, gateways, and plants
  • Retrieve and update model information
  • Interact with Logbot’s GA (Gateway Agent) API endpoints
  • Includes typed request/response models for all asset-related operations
  • Auto-generated from Logbot’s OpenAPI specification

🧩 Requirements #

  • Dart SDK: >=3.1.0 <4.0.0
  • Flutter SDK: >=3.10.0
  • Internet access to connect to your Logbot backend

🚀 Installation #

To use this package, add it to your project’s pubspec.yaml:

dependencies:
  lb_assets: ^1.0.1

Then run flutter pub get to install the package.

🧠 Getting Started #

Here’s a simple example showing how to fetch a list of devices:

import 'package:lb_assets/api.dart';

void main() async {
  final api = DevicesApi();

  try {
    List<Device>? result = await LogbotAssets.devices.getDevices(
        [
          PopulateDeviceQueryParameters.populateDeviceModels,
        ],
      );
    print('Found ${devices.length} devices');
  } catch (e) {
    print('Error fetching devices: $e');
  }
}

📚 API Reference #

The lb_assets package includes multiple APIs and models for asset management.

For a complete list of endpoints and model documentation, see the 👉 Full API Reference

Author #

Logbot SRL info@logbot.cloud

0
likes
130
points
17
downloads

Publisher

verified publisherlogbot.cloud

Weekly Downloads

Logbot assets service to manage assets (plants, groups, devices, gateways, gateway models, device models, device models metrics, licenses, manufacturers, ... etc.)

Homepage

Documentation

Documentation
API reference

License

BSD-3-Clause (license)

Dependencies

collection, flutter, http, intl, lb_auth, lb_commons, meta

More

Packages that depend on lb_assets