Added Database connection

This commit is contained in:
2017-09-16 00:02:36 +02:00
parent dfd7f33969
commit 52c0c9d8f8
3 changed files with 104 additions and 2 deletions

View File

@@ -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
};