pybotvac/robot.py
def _message(self, json):
        """
        Sends message to robot with data from parameter 'json'
        :param json: dict containing data to send
        :return: server response
        """

        cert_path = os.path.join(os.path.dirname(__file__), 'cert', 'neatocloud.com.crt')
        response = requests.post(self._url,
                                 json=json,
                                 verify=cert_path,
                                 auth=Auth(self.serial, self.secret),
                                 headers=self._headers)
        response.raise_for_status()
        return response
def _message(self, json):
        """
        Sends message to robot with data from parameter 'json'
        :param json: dict containing data to send
        :return: server response
        """

        cert_path = os.path.join(os.path.dirname(__file__), 'cert', 'neatocloud.com.crt')
        response = requests.post(self._url,
                                 json=json,
                                 verify=cert_path,
                                 auth=Auth(self.serial, self.secret),
                                 headers=self._headers)
        response.raise_for_status()
        return response
def _message ( self , json ) : cert_path = os . path . join ( os . path . dirname ( __file__ ) , 'cert' , 'neatocloud.com.crt' ) response = requests . post ( self . _url , json = json , verify = cert_path , auth = Auth ( self . serial , self . secret ) , headers = self . _headers ) response . raise_for_status ( ) return response
Sends message to robot with data from parameter 'json'
        :param json: dict containing data to send
        :return: server response
Sends message to robot with data from parameter json : param json : dict containing data to send : return : server response