Added Database connection
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
#ifndef HUMIDITYSERVER_H
|
||||
#define HUMIDITYSERVER_H
|
||||
|
||||
#include <ngrest/db/Table.h>
|
||||
#include <ngrest/db/MySqlDb.h>
|
||||
#include <ngrest/common/Service.h>
|
||||
|
||||
//! Dummy description for the service
|
||||
@@ -16,6 +18,9 @@ public:
|
||||
// *method: GET
|
||||
// *location: /abshum?temperature={temperature}&humidity={humidity}
|
||||
float absolutehumidity(float temperature, float humidity);
|
||||
private:
|
||||
//Format: Table, User, Password
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user