thingsboard / dart_thingsboard_client

ThingsBoard API client library for Dart developers.
BSD 3-Clause "New" or "Revised" License
60 stars 32 forks source link

Error in login: ThingsboardError: message: [Unsupported ThingsBoard platform version: 3.6.0], errorCode: 2, status: null #38

Closed 22chandan closed 4 months ago

22chandan commented 4 months ago

Future login() async { try { tbClient = ThingsboardClient(thingsBoardApiEndpoint.value); await tbClient .login(LoginRequest('xxxx', 'xxxx')); log("isAuthenticated=${tbClient.isAuthenticated()}"); } catch (e) { log('Error in login: $e'); } }

ybeshkarov commented 4 months ago

It's not an issue, the minimal supported version is 3.6.3

Screenshot 2024-07-29 at 14 40 20
22chandan commented 4 months ago

what is solution of this so that it donot appear and can fetch smoothly??? @ybeshkarov

ybeshkarov commented 4 months ago

You have a few options to consider:

  1. Update your ThingsBoard to version 3.6.3 or newer.
  2. Modify the provided code to bypass this check. Please note, however, that this approach might require you to resolve additional issues that could arise as a result.

@22chandan

DayDreamer-commits commented 4 months ago

@22chandan this might help.