Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To validate the smartphone integration in the GREENSPECTOR workflow, you can do the following tests .
- Download on the computer :

  1. If android SDK is not installed, you can download and install

...

  1. Android SDK. Installation guide: https://developer.android.com/studio/releases/platform-tools
  2. Connect your smartphone to your computer using a USB cable.

...

  1. In a shell, execute the command

...

  1. adb tcpip 5555. (if adb is not in your path, find adb executable and run ./adb tcpip 5555)

...

  1. Disconnect the USB cable and find the IP address of the smartphone in the configuration Menu (About > State).

...

  1. Connect your computer to the smartphone using the command adb connect <smartphone_ip>.

1st flow

On the smartphone, navigate with your browser to the URL “httpshttps://<YOUR_INSTANCE>.greenspector.com/api. If you don't have a dedicated server, use https://app.greenspector.com/api.

If you see a response containing the message “OK” OK, then the connection is successful, else you may have to configure a proxy or to authorize some network flows in your firewall.

2nd flow2nd flow

On the smartphone, check that your application reaches the any backend server or the web application works properlyweb service necessary for a proper functioning.

3rd flow

adb connect <SMARTPHONE_IP>
adb shell
You Check that you are able to connect to the smartphone and that the connection is authorized.

Code Block
languagebash
adb connect <SMARTPHONE_IP>
adb shell

4th flow

On your computer, navigate with your browser to the URL “httpshttps://<YOUR_INSTANCE>.greenspector.com/api. If you don't have a dedicated server, use https://app.greenspector.com/api.

If you see a response containing the message “OK” OK, then the connection is successful, else you may have to configure a proxy or to authorize some network flows in your firewall.