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

outdated

Dart implementation of ThingsBoard PE API client.

ThingsBoard PE API client library for Dart developers. It's compatible with TB PE 3.3.0.

Usage #

A simple usage example:

import 'package:thingsboard_pe_client/thingsboard_client.dart';

main() async {
    try {
      var tbClient = ThingsboardClient('https://thingsboard.cloud');
      await tbClient.login(LoginRequest('tenant@thingsboard.org', 'tenant'));

      print('isAuthenticated=${tbClient.isAuthenticated()}');

      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.

4
likes
0
pub points
86%
popularity

Publisher

verified publisherthingsboard.io

Dart implementation of ThingsBoard PE API client.

Homepage

License

unknown (LICENSE)

Dependencies

dio, jwt_decoder, web_socket_channel

More

Packages that depend on thingsboard_pe_client