Add new generic http function for sending json with the standard Httpclient library: Grainfather HTTP response is HTTP/2 201. That does not work with strcmp(status +9, "200 OK") in dataSendHandler::send_to_url. So I have added a new dataSendHandler::http_send_json function that uses the Arduino Httpclient library as it dataSendHandler::send_to_google already does.
Fix javascript code for Grainfather settings
Set the send_lock flag inside the check block: Otherwise it gets overwritten at the end of the function and the next run could cause problems
HTTP/2 201
. That does not work withstrcmp(status +9, "200 OK")
indataSendHandler::send_to_url
. So I have added a newdataSendHandler::http_send_json
function that uses the Arduino Httpclient library as itdataSendHandler::send_to_google
already does.