Open-Acidification / TankController

Arduino and web GUI source code for the Open Acidification tank controller (pH-stat unit).
https://open-acidification.github.io/
Mozilla Public License 2.0
8 stars 35 forks source link

Add functionality for PUT requests #383

Closed Suocesky closed 1 year ago

Suocesky commented 1 year ago

Add functions to accept and handle PUT requests in addition to POST requests so that values can be edited from the web app.

jgfoster commented 1 year ago

The goal of this task is to support editing selected fields from the current information table (see EthernetServer_TC.cpp:132). The general format will be similar to a POST but is a PUT with a key from the list in JSONBuilder.cpp:37-49 and a new value for that field. On success the server should return a status code of 200 and the body content from the current() function (above).

jgfoster commented 1 year ago

The steps we will do for this include the following:

jgfoster commented 1 year ago

Fixed by #389.