joshbaird / MoistureSensingSprinkler

2 stars 0 forks source link

Add Route for Updating Existing Sensor #3

Closed bdcannon closed 9 years ago

bdcannon commented 9 years ago

Right now the add sensor route allows for duplicates.

joshbaird commented 9 years ago

I will work on this now with the latest JSON object.

joshbaird commented 9 years ago

Needs testing but should be implemented. Added updatesensor. maps based on sensorId field. Also changed addsensor to check sensorId first and update if it already exists.

joshbaird commented 9 years ago

Fixed and tested.