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.

4.4.0 #

  • Initial release targeting ThingsBoard Professional Edition 4.4.0 server.
  • Auto-generated from OpenAPI spec using openapi-generator-cli 7.20.0 (dart-dio template).
  • Handwritten runtime facade: JWT authentication with auto-refresh, Completer-gated token refresh, WebSocket telemetry subscriptions, typed ThingsboardError with retry logic.
  • 81 API service classes, 949+ model types.
  • Supports Flutter mobile (iOS/Android) and Flutter Web. Requires Dart SDK >=3.2.0.
  • Token refresh keeps the stored session on transport failures (no network, timeout, 5xx); only an HTTP 401 from the refresh endpoint clears it.
  • init() restores the stale session when the refresh cannot reach the server, so the next authenticated request retries the refresh instead of the user being logged out. The telemetry WebSocket likewise reconnects instead of logging out when its token refresh cannot reach the server.
  • Default 20s connect timeout on every request and a 15s send/receive timeout on the token-refresh call.
  • ThingsboardError.isUnauthorized identifies a rejected-credentials error regardless of how it was transported.
4
likes
140
points
1.33k
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