fix: load less from database on mqtt publish

This commit is contained in:
Tobias Reisinger 2020-08-28 23:26:22 +02:00
parent 6117548e32
commit 6728ef9264
6 changed files with 40 additions and 25 deletions
include/models

View file

@ -42,6 +42,9 @@ controller_get_by_id(int id);
controller_t*
controller_get_by_uid(uuid_t uid);
int
controller_get_id_for_uid(uuid_t uid);
controller_t**
controller_get_all();

View file

@ -47,6 +47,9 @@ relay_free_list(relay_t **relays_list);
relay_t*
relay_get_by_id(int id);
int
relay_get_id_for_controller(int controller_id, int relay_num);
relay_t*
relay_get_for_controller(int controller_id, int relay_num);