indoor-navigation-system icon indicating copy to clipboard operation
indoor-navigation-system copied to clipboard

INS Server to accommodate POST and GET temperature requests

Open platisd opened this issue 6 years ago • 0 comments

Description

As an facilities manager I want to be able to see what is the temperature around each INS-node so to be able to adjust the heating or cooling accordingly.

Definition of Done

  • The INS server is able to receive POST requests with the temperature readings from the INS-nodes. The request should be formulated as http://localhost:9080/set_temperature/id/temperature where the temperature is an integer and the ID an arbitrary identification number (unless #82 is implemented first).
  • The INS server is able to receive GET requests to return the latest temperature for the specified node id. The request should be formulated as http://localhost:9080/get_temperature/id where ID an arbitrary identification number (unless #82 is implemented first).
  • The JSON response should be formulated as {employee_id:<id>, temperature:<val>}.
  • Documentation is updated accordingly.

platisd avatar May 19 '18 19:05 platisd