thermometers/thermometers.h

changeset 144
3446371e0bdb
parent 51
a03b6dac5398
child 145
1396350141cf
equal deleted inserted replaced
143:54f9b5d39e4c 144:3446371e0bdb
29 #include <netdb.h> 29 #include <netdb.h>
30 #include <poll.h> 30 #include <poll.h>
31 31
32 32
33 /* mosquitto */ 33 /* mosquitto */
34 #include <mosquitto.h> 34 //#include <mosquitto.h>
35 35
36 #ifdef HAVE_WIRINGPI_H 36 #ifdef HAVE_WIRINGPI_H
37 /* wiringPi */ 37 /* wiringPi */
38 #include <wiringPi.h> 38 #include <wiringPi.h>
39 #include <pcf8574.h> 39 #include <pcf8574.h>
70 char *alias; /* Friendly name */ 70 char *alias; /* Friendly name */
71 } rc_switch; 71 } rc_switch;
72 72
73 typedef struct _sys_config { 73 typedef struct _sys_config {
74 char *name; /* Configuration name */ 74 char *name; /* Configuration name */
75 char *mosq_host; /* mosquitto server hostname */
76 int mosq_port; /* mosquitto server port */
77 int my_port; /* my client/server port */ 75 int my_port; /* my client/server port */
78 w1_therm *w1therms; /* 1-wire temp sensors */ 76 w1_therm *w1therms; /* 1-wire temp sensors */
79 #ifdef HAVE_WIRINGPI_H 77 #ifdef HAVE_WIRINGPI_H
80 int lcd_cols; /* LCD display columns */ 78 int lcd_cols; /* LCD display columns */
81 int lcd_rows; /* LCD display rows */ 79 int lcd_rows; /* LCD display rows */

mercurial