thermferm/thermferm.h

changeset 500
5aa914eb644e
parent 499
602d9968960f
child 506
cdcd07bbee30
equal deleted inserted replaced
499:602d9968960f 500:5aa914eb644e
129 typedef struct _units_list { 129 typedef struct _units_list {
130 struct _units_list *next; 130 struct _units_list *next;
131 int version; /* Record version */ 131 int version; /* Record version */
132 char *uuid; /* uid code */ 132 char *uuid; /* uid code */
133 char *name; /* friendly name */ 133 char *name; /* friendly name */
134 char *alias; /* alias name 'unit1' */
134 float volume; /* Volume of this unit */ 135 float volume; /* Volume of this unit */
135 char *air_address; /* DS18B20 address */ 136 char *air_address; /* DS18B20 address */
136 int air_state; /* 0=ok, 1=missing, 2=error */ 137 int air_state; /* 0=ok, 1=missing, 2=error */
137 int air_temperature; /* Air temperature in C * 1000 */ 138 int air_temperature; /* Air temperature in C * 1000 */
138 char *beer_address; /* DS18B20 address */ 139 char *beer_address; /* DS18B20 address */
329 int hum_state; /* 0=ok, 1=missing, 2=error */ 330 int hum_state; /* 0=ok, 1=missing, 2=error */
330 int hum_value; /* Huminity in % * 1000 */ 331 int hum_value; /* Huminity in % * 1000 */
331 int lcd_cols; /* LCD display columns */ 332 int lcd_cols; /* LCD display columns */
332 int lcd_rows; /* LCD display rows */ 333 int lcd_rows; /* LCD display rows */
333 int lcd_address; /* LCD display i2c address */ 334 int lcd_address; /* LCD display i2c address */
335 int next_unit; /* Next unit alias name */
334 units_list *units; /* Fermenter units */ 336 units_list *units; /* Fermenter units */
335 profiles_list *profiles; /* Ferment profiles */ 337 profiles_list *profiles; /* Ferment profiles */
336 devices_list *devices; /* Sensors and switches */ 338 devices_list *devices; /* Sensors and switches */
337 #ifdef USE_SIMULATOR 339 #ifdef USE_SIMULATOR
338 simulator_list *simulators; /* Simulators */ 340 simulator_list *simulators; /* Simulators */
339 #endif 341 #endif
340 #ifdef HAVE_MOSQUITTO_H 342 #ifdef HAVE_MOSQUITTO_H
341 char *mosq_host; /* MQTT host to connect to */ 343 char *mqtt_host; /* MQTT host to connect to */
342 int mosq_port; /* MQTT port to connect to */ 344 int mqtt_port; /* MQTT port to connect to */
343 #endif 345 #endif
344 } sys_config; 346 } sys_config;
345 347
346 348
347 349

mercurial