thingsboard_pe_client 4.4.0 copy "thingsboard_pe_client: ^4.4.0" to clipboard
thingsboard_pe_client: ^4.4.0 copied to clipboard

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

thingsboard_pe_client #

ThingsBoard Professional 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 — 81 service classes, 949+ 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.4.0

Installation #

dependencies:
  thingsboard_pe_client: ^4.4.0

Quick Start #

import 'package:thingsboard_pe_client/thingsboard_pe_client.dart'
    hide LoginRequest;
import 'package:thingsboard_pe_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()
      .getTenantDevices(pageSize: 10, page: 0);
  print('Devices: ${response.data?.data?.length}');

  // Logout
  await tbClient.logout();
}

Documentation #

License #

Apache 2.0 — see LICENSE.

4
likes
140
points
1.16k
downloads

Documentation

API reference

Publisher

verified publisherthingsboard.io

Weekly Downloads

ThingsBoard Professional 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_pe_client