Open RTS
Full implementation of the Somfy RTS protocol
Loading...
Searching...
No Matches
RTSRemoteStore Class Reference

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.

Public Member Functions

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.
 

Friends

class RTSRemote
 
class RTSReceiver
 

Additional Inherited Members

Detailed Description

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.

Member Function Documentation

◆ setCode()

void RTSRemoteStore::setCode ( uint32_t  remoteAddress,
uint16_t  rollingCode 
)

Set the rolling code for this remote, create if doesn't exist.

Parameters
remoteAddressthe address of the remote control
rollingCodethe rolling code to set

◆ getCode()

uint16_t RTSRemoteStore::getCode ( uint32_t  remoteAddress)

Get the rolling code for this remote.

Parameters
remoteAddressthe 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
remoteAddressthe 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
remoteAddressthe address of the remote control

◆ forget()

void RTSRemoteStore::forget ( uint32_t  remoteAddress)

Forget a specific remote.

Parameters
remoteAddressthe address of the remote control to forget

The documentation for this class was generated from the following files: