2020-05-06 23:38:13 +00:00
|
|
|
#ifndef CORE_COMMAND_H
|
|
|
|
#define CORE_COMMAND_H
|
|
|
|
|
|
|
|
#include <models/controller.h>
|
|
|
|
#include <models/relay.h>
|
|
|
|
|
|
|
|
int
|
|
|
|
command_set_relay_schedule(relay_t *relay);
|
|
|
|
|
|
|
|
int
|
|
|
|
command_set_controller_name(controller_t *controller);
|
|
|
|
|
|
|
|
int
|
|
|
|
command_send(controller_t *controller, int command_code, char *payload, uint32_t payload_size);
|
|
|
|
|
2020-06-27 16:31:36 +00:00
|
|
|
int
|
|
|
|
command_pulse(relay_t *relay, uint8_t duration);
|
|
|
|
|
2020-05-06 23:38:13 +00:00
|
|
|
#endif /* CORE_COMMAND_H */
|