ThingsBoard PE API client library for Dart developers.

Overview

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('[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.

You might also like...

A customizable gradient Textfield for the developers who wants to style the Texfield of Flutter App

A customizable gradient Textfield for the developers who wants to style the Texfield of Flutter App

Gradient Textfield A customizable gradient Textfield for the developers who want

Nov 5, 2022

A Dart library for creating a Dart object to represent directory trees.

Directory Tree A Dart library for creating a Dart object to represent directory trees. Getting Started Import and initialize package import 'package:d

Dec 1, 2021

A simple and easy to use Redis client for Dart

redis_dart A simple and minimalist Redis client for Dart See it in pub: https://pub.dev/packages/redis_dart and GitHub: https://github.com/gabrielpach

Dec 25, 2022

Wallet Connect client in Dart.

Wallet Connect Wallet Connect client in dart highly inspired from wallet-connect-kotlin by Trust Wallet. Usage import 'package:wallet_connect/wall

Dec 29, 2022

A dart client for Supabase Realtime server.

realtime-dart Listens to changes in a PostgreSQL Database and via websockets. A dart client for Supabase Realtime server. Usage Creating a Socket conn

Dec 14, 2022

Library App Using Google Books API

Library App Using Google Books API

Library App USing Google Books API A new Flutter project. Getting Started For he

Nov 2, 2022

With ML Kit's face detection API, you can detect faces in an camera or image, Note that the API detects faces, it does not recognize people

With ML Kit's face detection API, you can detect faces in an camera or image, Note that the API detects faces, it does not recognize people

Face Detection This project is a starting point for a Flutter application. Getting Started For help getting started with Flutter, view our online docu

Dec 29, 2022

Weather-App-Api- - Simple Realtime Weather App With Api

Weather-App-Api- - Simple Realtime Weather App With Api

music_app A new Flutter Weather App project. Getting Started // اول حاجه تعمل en

Nov 11, 2022

A type-safe command-line parsing library for Dart

plade Plade is a type-safe CLI parsing library for Dart. Highlights Fully type-safe and null-safe. Support for a variety of different parsing styles (

Jan 1, 2022
Comments
  • Null issues in getDeviceService().getUserDevices(PageLink(1))

    Null issues in getDeviceService().getUserDevices(PageLink(1))

    Hi, I faced the following error, while try calling _tbClient.getDeviceService().getUserDevices(PageLink(1)): E/flutter ( 5652): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: type 'Null' is not a subtype of type 'Map<String, dynamic>' E/flutter ( 5652): #0 new Device.fromJson package:thingsboard_pe_client/…/model/device_models.dart:766 E/flutter ( 5652): #1 parseDevicePageData.<anonymous closure> package:thingsboard_pe_client/…/service/device_service.dart:8 E/flutter ( 5652): #2 dataFromJson.<anonymous closure> package:thingsboard_pe_client/…/page/page_data.dart:35 E/flutter ( 5652): #3 MappedListIterable.elementAt (dart:_internal/iterable.dart:413:31) E/flutter ( 5652): #4 ListIterator.moveNext (dart:_internal/iterable.dart:342:26) E/flutter ( 5652): #5 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:206:27) E/flutter ( 5652): #6 new _GrowableList.of (dart:core-patch/growable_array.dart:153:28) E/flutter ( 5652): #7 new List.of (dart:core-patch/array_patch.dart:51:28)

    While debugging, I recieved this: in device_model.dart deviceProfileIdIsNull

    With the following runtime variables: data

    Most of the devices parameter are empty, because I created it just with the necessary params with the API. How can I use the method _tbClient.getDeviceService().getUserDevices(PageLink(1)) with this kind of devices?

    Best regards :)

    opened by Dmuldoraf 2
Releases(v1.0.2)
Owner
ThingsBoard - Open-source IoT Platform
IoT device management, data collection, processing and visualization for your IoT projects.
ThingsBoard - Open-source IoT Platform
Notion API client for dart

Notion API client for dart. See the ROADMAP file to see what is coming next. API implemented Usage NotionClient class Individual classes A few example

Jonathan Gómez 22 Oct 9, 2022
Figma API client written in pure Dart

figma A library for interacting with Figma APIs. Created from templates made available by Stagehand under a BSD-style license. Usage A simple usage ex

Arne Molland 14 Oct 19, 2022
A fully cross-platform wrap of the Matomo tracking client for Flutter, using the Matomo API.

A fully cross-platform wrap of the Matomo tracking client for Flutter, using the Matomo Tracking API.

Floating Dartists 12 Jan 8, 2023
DoneIt is a sample note app 📝 Flutter application 📱 built to demonstrate use of Clean Architecture tools. Dedicated to all Flutter Developers with ❤️.

DoneIt ?? DoneIt is a sample note app ?? Flutter application ?? built to demonstrate use of Clean Architecture tools. Dedicated to all Flutter Develop

Shubham Chhimpa 175 Dec 24, 2022
For all the developers out there make your first Pull Request and earn a free Tee from GitHub!

Hacktoberfest2021 For all the developers out there make your first Pull Request and earn a free Tee from GitHub! Make sure you have a GitHub account.

null 2 Oct 10, 2021
story_designer is created to help developers out there who are looking for implementing Instagram like stories editor.

story_designer A package for creating instagram like story, you can use this package to edit images and make it story ready by adding other contents o

Gulshan Yadav 19 Nov 2, 2022
A starter helper for flutter developers wanting to use firebase phone authentication in their app.

riverpod_firebase_phone_auth A new Flutter project template showing how to handle mobile authentication using Firebase and Riverpod. Packages Used Fre

Douglas Bett 8 Oct 31, 2022
Some built-in live templates support developers to use Flutter Riverpod faster on Intellij based

Flutter Riverpod live templates Flutter Riverpod live templates is a way to enhance the way you use Riverpod. It contains a collection of different sn

Minh Tran 27 Dec 16, 2022
🔠 an open dictions platform (both students and developers are welcome!)

ROBBIN modern vocabulary leaning app for SAT/GRE students. supported native human languages KOREAN (ko-KR) ENGLISH (en-US) project structure /app - wo

Universe 7 Nov 30, 2022
Showwcase is a professional network built for developers to connect, build community, and find new opportunities.

Showwcase Generated by the Very Good CLI ?? Showwcase is a professional network built for developers to connect, build community, and find new opportu

Luis Ciber 4 Jan 13, 2022