1#ifndef RTS_REMOTE_STORE_HPP
2#define RTS_REMOTE_STORE_HPP
33 void setCode(uint32_t remoteAddress, uint16_t rollingCode);
42 uint16_t
getCode(uint32_t remoteAddress);
51 uint16_t
nextCode(uint32_t remoteAddress);
65 void forget(uint32_t remoteAddress);
Simulates a physical RTS receiver device, such as a shade or drapery motor.
Definition RTSReceiver.hpp:50
Provides an interface for a datastore which contains details about remote controls and rolling codes.
Definition RTSRemoteStore.hpp:23
uint16_t getCode(uint32_t remoteAddress)
Get the rolling code for this remote.
Definition RTSRemoteStore.cpp:22
uint16_t nextCode(uint32_t remoteAddress)
Get the rolling code for this remote, then increment and persist.
Definition RTSRemoteStore.cpp:27
void clear()
Clear all remotes and rolling codes.
Definition RTSRemoteStore.cpp:42
void forget(uint32_t remoteAddress)
Forget a specific remote.
Definition RTSRemoteStore.cpp:37
bool knownRemote(uint32_t remoteAddress)
Check if this is a known remote address.
Definition RTSRemoteStore.cpp:32
void setCode(uint32_t remoteAddress, uint16_t rollingCode)
Set the rolling code for this remote, create if doesn't exist.
Definition RTSRemoteStore.cpp:17
Simulates a physical RTS remote control.
Definition RTSRemote.hpp:29
Provides an interface for a datastore which contains details about remote controls and rolling codes.
Definition rts_remote_store.h:29