fix config stuff
This commit is contained in:
parent
0a39c5c85c
commit
34f6066ef1
@ -1,6 +1,7 @@
|
||||
#include <wiringPi.h>
|
||||
#include <wiringPiSPI.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <libconfig.h>
|
||||
@ -49,11 +50,13 @@ void readConfig() {
|
||||
exit(-1);
|
||||
}
|
||||
}
|
||||
|
||||
void start() {
|
||||
wiringPiISR(INTR_IN, INT_EDGE_RISING, isr);
|
||||
}
|
||||
|
||||
int main (void) {
|
||||
readConfig();
|
||||
init();
|
||||
ls7366rInit(SPI_CHAN);
|
||||
influxInit(&cfg);
|
||||
|
@ -8,7 +8,7 @@
|
||||
|
||||
|
||||
const char INFLUXURL_KEY[] = "influxUrl";
|
||||
const char DEFAULT_INFLUXURL[] = "https://home.hottis.de/influx/write?db=smarthome2&precision=ms";
|
||||
const char DEFAULT_INFLUXURL[] = "http://172.16.3.15:8086/write?db=smarthome2&precision=ms";
|
||||
const char *influxUrl;
|
||||
const char INFLUXUSER_KEY[] = "influxUser";
|
||||
const char *influxUser;
|
||||
|
Loading…
x
Reference in New Issue
Block a user