SandorBalazsHU / elte-ik-msc-weather-cam

ELTE IK MSC Haladó Szoftvertechnológia projekt. Időjárási kamera [Projekt 5]
MIT License
1 stars 0 forks source link

Align measurement entities between the hardware (and hardware mock) and the app #28

Open szokolimatyas opened 1 year ago

szokolimatyas commented 1 year ago

I saw:

server.send(200, "text/plain", sendRAW(temperature, humidity, pressure, altitude, wifiStrength)); 

in the hardware code. The server expects (temperature, humidity, pressure, battery, timestamp). The timestamp will be generated by the app, but I have a few requests/questions:

szokolimatyas commented 1 year ago

Also, wifiStrength is unused at the moment, so that could be removed.

szokolimatyas commented 1 year ago

Basically I need a: { temp: Float, pressure: Float, humidity: Float, battery: Float (percentage)} json, with application/json Content-Type.