SinricPro Library
Loading...
Searching...
No Matches
EqualizerController< T >

EqualizerController. More...

#include <EqualizerController.h>

Inheritance diagram for EqualizerController< T >:

Public Member Functions

void onSetBands (SetBandsCallback cb)
 Set callback function for setBands request.
 
void onAdjustBands (AdjustBandsCallback cb)
 Set callback function for adjustBands request.
 
void onResetBands (ResetBandsCallback cb)
 Set callback function for resetBands request.
 
bool sendBandsEvent (String bands, int level, String cause="PHYSICAL_INTERACTION")
 Send setBands event to SinricPro Server indicating bands level has changed.
 

Detailed Description

template<typename T>
class SINRICPRO_3_0_0::EqualizerController< T >

EqualizerController.

Member Function Documentation

◆ onAdjustBands()

template<typename T >
void onAdjustBands ( AdjustBandsCallback  cb)

Set callback function for adjustBands request.

Parameters
cbFunction pointer to a AdjustBandsCallback function
Returns
void
See also
AdjustBandsCallback

◆ onResetBands()

template<typename T >
void onResetBands ( ResetBandsCallback  cb)

Set callback function for resetBands request.

Parameters
cbFunction pointer to a ResetBandsCallback function
Returns
void
See also
ResetBandsCallback

◆ onSetBands()

template<typename T >
void onSetBands ( SetBandsCallback  cb)

Set callback function for setBands request.

Parameters
cbFunction pointer to a SetBandsCallback function
Returns
void
See also
SetBandsCallback

◆ sendBandsEvent()

template<typename T >
bool sendBandsEvent ( String  bands,
int  level,
String  cause = "PHYSICAL_INTERACTION" 
)

Send setBands event to SinricPro Server indicating bands level has changed.

Parameters
bandsString which bands has changed
BASS, MIDRANGE, TREBBLE
levelInteger with changed bands level
cause(optional) String reason why event is sent (default = "PHYSICAL_INTERACTION")
Returns
the success of sending the even
Return values
trueevent has been sent successfully
falseevent has not been sent, maybe you sent to much events in a short distance of time