add: pulse mode

add: editorconfig
This commit is contained in:
Tobias Reisinger 2020-06-27 18:27:49 +02:00
parent 679175f1a9
commit 0f342b4aa8
13 changed files with 151 additions and 70 deletions
include/models

View file

@ -12,6 +12,8 @@ typedef struct
{
uint8_t number;
int is_on;
int is_on_schedule;
int pulse_timer;
int sent_to_broker;
char name[MAX_NAME_LENGTH + 1];
schedule_t *schedules[7];
@ -53,7 +55,7 @@ int
relay_save(relay_t *relay, MDB_env *mdb_env);
int
relay_is_active(relay_t *relay, struct tm *time_struct);
relay_is_on_schedule(relay_t *relay, struct tm *time_struct);
void
relay_free(relay_t *relay);