Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

UP TO DATE

Preparation

To validate the smartphone integration in the GREENSPECTOR workflow, you can do the following tests.

  1. Download and install Android SDK on your computer.
  2. Connect your smartphone to your computer using a USB cable.
  3. In a shell, execute the command adb shell tcpip 5555.
  4. Disconnect the USB cable and find the IP address of the smartphone in the configuration Menu (About > State).
  5. 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 https://<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, then the connection is successful, else you may have to configure a proxy or to authorize some network flows in your firewall.

2nd flow

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

3rd flow

Check that you are able to connect to the smartphone and that the connection is authorized.

adb connect <SMARTPHONE_IP>
adb shell

4th flow

On your computer, navigate with your browser to the URL https://<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, then the connection is successful, else you may have to configure a proxy or to authorize some network flows in your firewall.

  • No labels