thingsboard / flutter_thingsboard_app

ThingsBoard Mobile Application
https://thingsboard.io/products/mobile/
BSD 3-Clause "New" or "Revised" License
208 stars 155 forks source link

How can I connect our own server #2

Closed DiamoandDog closed 2 years ago

DiamoandDog commented 3 years ago

When I launch the app and enter the landing page, how do I set my server address Simulator Screen Shot - iPhone 11 - 2021-07-22 at 14 43 55

vvlladd28 commented 3 years ago

Hi @DiamoandDog, Your need to edit variable thingsBoardApiEndpoint in file lib/constants/app_constants.dart

DiamoandDog commented 3 years ago

Hi @DiamoandDog, Your need to edit variable thingsBoardApiEndpoint in file lib/constants/app_constants.dart

Thank you so much !And now we encounter a new problem. In the tb_context.dart file, an error is thrown when running to ‘homeDashboard = await tbClient.getDashboardService().getHomeDashboardInfo();’, and then the program executes logout(). We seem to be unable to request the api of'/api/dashboard/home/info'. I want to know what is causing this problem. How can I solve this problem?

angrymango commented 3 years ago

@DiamoandDog I hit the same issue. If you look at the dart client it supports the unreleased thingsboard v3.3.0 https://github.com/thingsboard/dart_thingsboard_client. I ran it against a build from the master branch and it works.

DiamoandDog commented 2 years ago

@DiamoandDog I hit the same issue. If you look at the dart client it supports the unreleased thingsboard v3.3.0 https://github.com/thingsboard/dart_thingsboard_client. I ran it against a build from the master branch and it works.

Sorry,I think I have used the v3.3.0 version of the client, but I now find a problem. In the v3.3.0 environment we deployed, we did not find the'/ in ThingsBoard REST API (in swagger-ui.html page) api/dashboard/home/info', but in the environment of'http://demo.thingsboard.io/', you can find this api. What is the cause of this, and how can I solve it?

RTL8710 commented 2 years ago

@DiamoandDog I hit the same issue. If you look at the dart client it supports the unreleased thingsboard v3.3.0 https://github.com/thingsboard/dart_thingsboard_client. I ran it against a build from the master branch and it works.

Sorry,I think I have used the v3.3.0 version of the client, but I now find a problem. In the v3.3.0 environment we deployed, we did not find the'/ in ThingsBoard REST API (in swagger-ui.html page) api/dashboard/home/info', but in the environment of'http://demo.thingsboard.io/', you can find this api. What is the cause of this, and how can I solve it?

When I launch the app and enter the landing page, how do I set my server address Simulator Screen Shot - iPhone 11 - 2021-07-22 at 14 43 55

我也遇到这个问题了, 希望可以联系,共同学习thingsboard,谢谢咯

DiamoandDog commented 2 years ago

@DiamoandDog I hit the same issue. If you look at the dart client it supports the unreleased thingsboard v3.3.0 https://github.com/thingsboard/dart_thingsboard_client. I ran it against a build from the master branch and it works.

Sorry,I think I have used the v3.3.0 version of the client, but I now find a problem. In the v3.3.0 environment we deployed, we did not find the'/ in ThingsBoard REST API (in swagger-ui.html page) api/dashboard/home/info', but in the environment of'http://demo.thingsboard.io/', you can find this api. What is the cause of this, and how can I solve it?

When I launch the app and enter the landing page, how do I set my server address Simulator Screen Shot - iPhone 11 - 2021-07-22 at 14 43 55

我也遇到这个问题了, 希望可以联系,共同学习thingsboard,谢谢咯

你看第二条,他已经回复我了,就是改那个文件里的地址

IoTThinks commented 2 years ago

@vvlladd28 Do you have any screenshots after login on the mobile app? Very curious. Thanks a lot.

vvlladd28 commented 2 years ago

Hi @IoTThinks, Screenshots after login on the mobile app: image image image image

IoTThinks commented 2 years ago

So great. I'm trying now.

Still newbie in mobile development. Thanks a lot.