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.

29 lines
607 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. #if DOMOTICZ_SUPPORT
  7. #include <ArduinoJson.h>
  8. #include <bitset>
  9. template<typename T>
  10. void domoticzSend(const char * key, T value);
  11. template<typename T>
  12. void domoticzSend(const char * key, T nvalue, const char * svalue);
  13. void domoticzSendMagnitude(unsigned char type, unsigned char index, double value, const char* buffer);
  14. void domoticzSendRelay(unsigned char relayID, bool status);
  15. void domoticzSendRelays();
  16. void domoticzSetup();
  17. bool domoticzEnabled();
  18. #endif // DOMOTICZ_SUPPORT == 1