Open RTS
Full implementation of the Somfy RTS protocol
Loading...
Searching...
No Matches
RTSRemoteStore.hpp
Go to the documentation of this file.
1#ifndef RTS_REMOTE_STORE_HPP
2#define RTS_REMOTE_STORE_HPP
3
5
23{
24 public:
26
33 void setCode(uint32_t remoteAddress, uint16_t rollingCode);
34
42 uint16_t getCode(uint32_t remoteAddress);
43
51 uint16_t nextCode(uint32_t remoteAddress);
52
58 bool knownRemote(uint32_t remoteAddress);
59
65 void forget(uint32_t remoteAddress);
66
70 void clear();
71
72 protected:
74
75 friend class RTSRemote;
76 friend class RTSReceiver;
77};
78
83#endif // RTS_REMOTE_STORE_HPP
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