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.

4.3.0 #

  • Initial release targeting ThingsBoard 4.3.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.
  • 58 API service classes, 690+ 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.
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