Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
628 B

  1. /*
  2. DOMOTICZ MODULE
  3. Copyright (C) 2016-2019 by Xose Pérez <xose dot perez at gmail dot com>
  4. */
  5. #pragma once
  6. #include "espurna.h"
  7. #if DOMOTICZ_SUPPORT
  8. #include <ArduinoJson.h>
  9. #include <bitset>
  10. template<typename T>
  11. void domoticzSend(const char * key, T value);
  12. template<typename T>
  13. void domoticzSend(const char * key, T nvalue, const char * svalue);
  14. void domoticzSendMagnitude(unsigned char type, unsigned char index, double value, const char* buffer);
  15. void domoticzSendRelay(unsigned char relayID, bool status);
  16. void domoticzSendRelays();
  17. void domoticzSetup();
  18. bool domoticzEnabled();
  19. #endif // DOMOTICZ_SUPPORT == 1