thingsboard_ce_client 4.3.0 copy "thingsboard_ce_client: ^4.3.0" to clipboard
thingsboard_ce_client: ^4.3.0 copied to clipboard

ThingsBoard Community Edition REST API client for Flutter. JWT auth, auto-refresh, WebSocket telemetry, typed error handling.

thingsboard_ce_client #

ThingsBoard Community Edition REST API client for Flutter.

Auto-generated from the ThingsBoard OpenAPI spec with a handwritten runtime facade providing JWT authentication, automatic token refresh, WebSocket telemetry subscriptions, and typed error handling.

Features #

  • Full REST API coverage — 58 service classes, 690+ model types
  • JWT authentication — Login, auto-refresh, concurrent request handling
  • WebSocket telemetry — Real-time device data subscriptions with auto-reconnect
  • Typed errors — ThingsboardError with ThingsBoardErrorCode enum and retry logic
  • Flutter Web + Mobile — No bare dart:io imports; works on all Flutter platforms
  • Compatible with ThingsBoard 4.3.0

Installation #

dependencies:
  thingsboard_ce_client: ^4.3.0

Quick Start #

import 'package:thingsboard_ce_client/thingsboard_ce_client.dart'
    hide LoginRequest;
import 'package:thingsboard_ce_client/src/model/login_models.dart'
    show LoginRequest;

void main() async {
  final tbClient = ThingsboardClient('https://your-tb-instance.com');

  // Login
  await tbClient.login(LoginRequest(
    userName: 'tenant@thingsboard.org',
    password: 'tenant',
  ));
  print('Logged in: ${tbClient.isAuthenticated()}');

  // List devices
  final response = await tbClient.getDeviceControllerApi()
      .getTenantDeviceInfos(pageSize: 10, page: 0);
  print('Devices: ${response.data?.data?.length}');

  // Logout
  await tbClient.logout();
}

Documentation #

License #

Apache 2.0 — see LICENSE.

0
likes
140
points
32
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

ThingsBoard Community Edition REST API client for Flutter. JWT auth, auto-refresh, WebSocket telemetry, typed error handling.

Homepage
Repository (GitHub)
View/report issues

Topics

#thingsboard #iot #rest-api #flutter #websocket

License

unknown (license)

Dependencies

built_collection, built_value, collection, dio, jwt_decoder, one_of, one_of_serializer, pretty_dio_logger, web_socket_channel

More

Packages that depend on thingsboard_ce_client