add mqtt_publish_stat() for override and timespec changes; add channel_override_clear(); call c_o_c() when Timespec.Clear removes the timespec, as there is no concept of overrides when there is no timespec set

This commit is contained in:
Pim van Pelt
2018-11-04 20:50:23 +01:00
parent aa3c0b0cda
commit b7467e3be1
3 changed files with 23 additions and 0 deletions

View File

@ -35,5 +35,6 @@ struct mgos_timespec *channel_get_timespec(int idx);
int channel_get_total();
void channel_handler(int gpio, void *arg);
void channel_override_set(int idx);
void channel_override_clear(int idx);
#endif // __MAIN_H