def __init__(self, path=DEFAULT_HC_PATH, hc_port=HC_PROXY_DEFAULT_PORT, ip=LOCALHOST,
                 coap_port=COAP_DEFAULT_PORT):
        """
        Initialize the HC proxy.

        :param path: the path of the hc_proxy server
        :param hc_port: the port of the hc_proxy server
        :param ip: the ip of the hc_proxy server
        :param coap_port: the coap server port you want to reach
        """
        global hc_path
        hc_path = HCProxy.get_formatted_path(path)
        self.hc_port = hc_port
        self.ip = ip
        self.coap_port = coap_port
def __init__ ( self , path = DEFAULT_HC_PATH , hc_port = HC_PROXY_DEFAULT_PORT , ip = LOCALHOST , coap_port = COAP_DEFAULT_PORT ) : global hc_path hc_path = HCProxy . get_formatted_path ( path ) self . hc_port = hc_port self . ip = ip self . coap_port = coap_port
Initialize the HC proxy.

        :param path: the path of the hc_proxy server
        :param hc_port: the port of the hc_proxy server
        :param ip: the ip of the hc_proxy server
        :param coap_port: the coap server port you want to reach