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.

32 lines
704 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. #if RFB_PROVIDER == RFB_PROVIDER_EFM8BB1
  10. BrokerDeclare(RfbridgeBroker, void(const char* code));
  11. #elif RFB_PROVIDER == RFB_PROVIDER_RCSWITCH
  12. BrokerDeclare(RfbridgeBroker, void(unsigned char protocol, const char* code));
  13. #endif
  14. void rfbStatus(unsigned char id, bool status);
  15. void rfbLearn(unsigned char id, bool status);
  16. String rfbRetrieve(unsigned char id, bool status);
  17. void rfbStore(unsigned char id, bool status, const char * code);
  18. void rfbForget(unsigned char id, bool status);
  19. void rfbSetup();
  20. #endif // RFB_SUPPORT == 1