access/devices

Methods

(async, inner) createDevice(req, res)

Source:
Creates a new device and sends an http response with the devices authentication information.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) deleteDevice(req, res)

Source:
Deletes a device and sends a success http status code if successful.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) getDevice(req, res)

Source:
Retrieve a specific devices data from the database and sends it as the http response.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) getDeviceData(req, res)

Source:
Retrieves the data of a device from the database and sends the data as the http response.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) getDeviceDataByDataRun(req, res)

Source:
Retrieves the data of a device from the database and sends the data as the http response.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.

(async, inner) getDevices(req, res)

Source:
Retrieves devices from the database by user and sends them as the http response.
Parameters:
Name Type Description
req Object An Express request object.
res Object An Express response object.