Reverting local HTTP gateway back from HTTPS to HTTP; there was a change regarding...
[iot2.git] / benchmarks / drivers / Java / WeatherPhoneGateway / WeatherPhoneGateway.java
index 50b44508c08a749473d0db1556b45d15159e2886..7ac5b85be439da3b652cf1c6ecc532db1994a218 100644 (file)
@@ -101,10 +101,17 @@ public class WeatherPhoneGateway implements WeatherGateway {
 
                // Launch IoTRemoteCall server in a separate thread
                workerThread = new Thread(new Runnable() {
+                       /* TODO: We revert back to HTTP because of new scheme for TLS context in Android 7
+                       This disrupts the usual setting for self-signed certificate
+                       See this link for more info: https://github.com/owntracks/android/issues/481
                        public void run() {
                                iotRemCall = new IoTRemoteCall(WeatherInfoInterface.class, 
                                        weatherInfo, iotDevAdd.getDestinationPortNumber(),
                                        IoTDeviceAddress.getLocalHostAddress());
+                       }*/
+                       public void run() {
+                               iotRemCall = new IoTRemoteCall(WeatherInfoInterface.class, 
+                               weatherInfo, iotDevAdd.getDestinationPortNumber());
                        }
                });
                workerThread.start();