Thingsboard Client | Coderz Product

thingsboard_client

Last updated:

0 purchases

thingsboard_client Image
thingsboard_client Images

Free

Languages

Categories

Add to Cart

Description:

thingsboard client

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.6.3.
Usage #
A simple usage example:
import 'package:thingsboard_client/thingsboard_client.dart';

main() async {
try {
var tbClient = ThingsboardClient('https://demo.thingsboard.io');
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');
}
}
copied to clipboard
Features and bugs #
Please file feature requests and bugs at the issue tracker.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product: (if this is empty don't purchase this product)

Customer Reviews

There are no reviews.