libconfig pin configuration #2

This commit is contained in:
2017-01-28 15:30:56 +01:00
parent c8182dafec
commit 74bcab7957
6 changed files with 66 additions and 8 deletions

View File

@@ -15,6 +15,8 @@ Use database: use dhtstats
Create new table: CREATE TABLE stats (id MEDIUMINT NOT NULL AUTO_INCREMENT, pin int not null, humidity FLOAT NOT NULL, temperature FLOAT NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id) );
Show all entries in table: select * from stats
## Dependencies
sudo apt-get install libmysqlclient-dev libmysqld-dev mysql
sudo apt-get install libmysqlclient-dev libmysqld-dev mysql libconfig-dev