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.

31 lines
588 B

  1. /*
  2. RF BRIDGE 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 RFB_SUPPORT
  8. #include "broker.h"
  9. BrokerDeclare(RfbridgeBroker, void(unsigned char protocol, const char* code));
  10. void rfbSend(const char* code);
  11. void rfbSend(const String& code);
  12. void rfbStatus(size_t id, bool status);
  13. void rfbLearn(size_t id, bool status);
  14. String rfbRetrieve(size_t id, bool status);
  15. void rfbStore(size_t id, bool status, const char* code);
  16. void rfbForget(size_t id, bool status);
  17. void rfbSetup();
  18. #endif // RFB_SUPPORT == 1