Ejemplo n.º 1
0
    def mk_request(self, method, path, flag=0):
        """
        Create a request.

        :param method: the CoAP method
        :param path: the path of the request
        :return:  the request
        """
        request = Request()
        request.destination = self.server
        request.code = method.number
        request.uri_path = path
        request.cflag = flag

        print "IN HELPER CLIENT"
        print request.destination, request.code
        print request.cflag, "THIS IS WHAT WE NEED"
        return request