https://github.com/thingsboard/dart_thingsboard_pe_client
ThingsBoard PE API client library for Dart developers.
https://github.com/thingsboard/dart_thingsboard_pe_client
Last synced: about 1 year ago
JSON representation
ThingsBoard PE API client library for Dart developers.
- Host: GitHub
- URL: https://github.com/thingsboard/dart_thingsboard_pe_client
- Owner: thingsboard
- License: bsd-3-clause
- Created: 2021-06-25T09:46:41.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-07T11:37:18.000Z (over 1 year ago)
- Last Synced: 2025-04-02T11:05:05.002Z (about 1 year ago)
- Language: Dart
- Size: 435 KB
- Stars: 50
- Watchers: 13
- Forks: 18
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
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.6.3PE.
## Usage
A simple usage example:
```dart
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][tracker].
[tracker]: https://github.com/thingsboard/dart_thingsboard_pe_client/issues