ThingsBoard API client library for Dart developers. Provides model objects and services to communicate with ThingsBoard platform using RESTful APIs and WebSocket protocol. Current client version is compatible with ThingsBoard starting from version 3.3.0.


A simple usage example:

import 'package:thingsboard_client/thingsboard_client.dart';

main() async {
    try {
      var tbClient = ThingsboardClient('');
      await tbClient.login(LoginRequest('', 'tenant'));


      print('authUser: ${tbClient.getAuthUser()}');

      var currentUserDetails = await tbClient.getUserService().getUser();
      print('currentUserDetails: $currentUserDetails');

      await tbClient.logout();

    } catch (e, s) {
        print('Error: $e');
        print('Stack: $s');

Features and bugs

Please file feature requests and bugs at the issue tracker.


Dart implementation of ThingsBoard API client.