fix config stuff

This commit is contained in:
Wolfgang Hottgenroth 2019-10-16 11:15:10 +01:00
parent 0a39c5c85c
commit 34f6066ef1
2 changed files with 4 additions and 1 deletions

View File

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

View File

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