Provides an interface for a datastore which contains details about remote controls and rolling codes.
More...
#include <RTSRemoteStore.hpp>
Inherits rts_remote_store.
Inherited by RTSRemoteStore_EEPROM, RTSRemoteStore_MMap, RTSRemoteStore_Memory, and RTSRemoteStore_NVS.
|
void | setCode (uint32_t remoteAddress, uint16_t rollingCode) |
| Set the rolling code for this remote, create if doesn't exist.
|
|
uint16_t | getCode (uint32_t remoteAddress) |
| Get the rolling code for this remote.
|
|
uint16_t | nextCode (uint32_t remoteAddress) |
| Get the rolling code for this remote, then increment and persist.
|
|
bool | knownRemote (uint32_t remoteAddress) |
| Check if this is a known remote address.
|
|
void | forget (uint32_t remoteAddress) |
| Forget a specific remote.
|
|
void | clear () |
| Clear all remotes and rolling codes.
|
|
|
class | RTSRemote |
|
class | RTSReceiver |
|
Provides an interface for a datastore which contains details about remote controls and rolling codes.
Implementations must define the get_code, set_code, forget, and clear functions and set the function pointers in the rts_remote_store struct.
◆ setCode()
void RTSRemoteStore::setCode |
( |
uint32_t |
remoteAddress, |
|
|
uint16_t |
rollingCode |
|
) |
| |
Set the rolling code for this remote, create if doesn't exist.
- Parameters
-
remoteAddress | the address of the remote control |
rollingCode | the rolling code to set |
◆ getCode()
uint16_t RTSRemoteStore::getCode |
( |
uint32_t |
remoteAddress | ) |
|
Get the rolling code for this remote.
- Parameters
-
remoteAddress | the address of the remote control |
- Returns
- the rolling code for this remote
◆ nextCode()
uint16_t RTSRemoteStore::nextCode |
( |
uint32_t |
remoteAddress | ) |
|
Get the rolling code for this remote, then increment and persist.
- Parameters
-
remoteAddress | the address of the remote control |
- Returns
- the rolling code for this remote
◆ knownRemote()
bool RTSRemoteStore::knownRemote |
( |
uint32_t |
remoteAddress | ) |
|
Check if this is a known remote address.
- Parameters
-
remoteAddress | the address of the remote control |
◆ forget()
void RTSRemoteStore::forget |
( |
uint32_t |
remoteAddress | ) |
|
Forget a specific remote.
- Parameters
-
remoteAddress | the address of the remote control to forget |
The documentation for this class was generated from the following files: