Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

dart_thingsboard_pe_client

thingsboard pe api client library for dart developers. provides model objects and services to communicate with thingsboard pe platform using restful apis and websocket protocol.
current client version is compatible with thingsboard pe starting from version 3.3.0pe.

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('[email protected]', '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.


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.