// 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();