                 NotificationCenter.default.addObserver(self, selector: #selector(OpenHABTracker.reachabilityChanged(_:)), name: NSNotification.Name.reachabilityChanged, object: nil)
                 do {
                 try reach?.startNotifier()
-                }  catch {
+                } catch {
                     print ("Could not start notifier")
                 }
             }

//  Copyright (c) 2014 Victor Belov. All rights reserved.
//

//import arpa
import Foundation
//import netinet
//import sys
import SystemConfiguration

protocol OpenHABTrackerDelegate {

        return urlTest.evaluate(with: url)
    }

    func isNetworkConnected2() -> Bool {
        let networkReach = Reachability()
        return (networkReach?.connection == .wifi || networkReach?.connection == .cellular ) ? true : false
    }

    func isNetworkWiFi() -> Bool {
        let wifiReach = Reachability()
        return wifiReach?.connection == .wifi ? true : false
    }

    func getStringIp(fromAddressData dataIn: Data?) -> String? {
