strieflinger / open-cisterna

An Open Source fluid level sensor for cisterns.
Apache License 2.0
1 stars 0 forks source link

Respond with error in case no target is detected #3

Closed strieflinger closed 6 years ago

strieflinger commented 6 years ago

The MaxSonar sensor returns a range of 5000 in case no target is detected. In this case a GET on /cistern/state should return an error. A 500 (Internal Server Error) with an explaining text would be an option.