Mirror of espurna firmware for wireless switches and more
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.
 
 
 
 
 
 

28 lines
565 B

/*
RF BRIDGE MODULE
Copyright (C) 2016-2019 by Xose Pérez <xose dot perez at gmail dot com>
*/
#pragma once
#include <Arduino.h>
#include <cstdint>
#include "types.h"
using RfbCodeHandler = void(*)(unsigned char protocol, espurna::StringView code);
void rfbOnCode(RfbCodeHandler);
void rfbSend(espurna::StringView code);
void rfbStatus(size_t id, bool status);
void rfbLearn(size_t id, bool status);
String rfbRetrieve(size_t id, bool status);
void rfbStore(size_t id, bool status, String code);
void rfbForget(size_t id, bool status);
void rfbSetup();