Open Lighting Architecture
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Member Functions | List of all members
ola::RDMHTTPModule Class Reference

Classes

struct  device_info
struct  lt_section_info
struct  personality_info
struct  resolved_uid
struct  section_info
struct  uid_resolution_state

Public Member Functions

 RDMHTTPModule (HTTPServer *http_server, class OlaCallbackClient *client)
void SetPidStore (const ola::rdm::RootPidStore *pid_store)
int RunRDMDiscovery (const HTTPRequest *request, HTTPResponse *response)
int JsonUIDs (const HTTPRequest *request, HTTPResponse *response)
int JsonUIDInfo (const HTTPRequest *request, HTTPResponse *response)
int JsonUIDIdentifyMode (const HTTPRequest *request, HTTPResponse *response)
int JsonUIDPersonalities (const HTTPRequest *request, HTTPResponse *response)
int JsonSupportedPIDs (const HTTPRequest *request, HTTPResponse *response)
int JsonSupportedSections (const HTTPRequest *request, HTTPResponse *response)
int JsonSectionInfo (const HTTPRequest *request, HTTPResponse *response)
int JsonSaveSectionInfo (const HTTPRequest *request, HTTPResponse *response)
void PruneUniverseList (const vector< OlaUniverse > &universes)

Member Function Documentation

int ola::RDMHTTPModule::JsonSaveSectionInfo ( const HTTPRequest request,
HTTPResponse response 
)

Save the information for a section or item.

int ola::RDMHTTPModule::JsonSectionInfo ( const HTTPRequest request,
HTTPResponse response 
)

Get the information required to render a section in the RDM controller panel

int ola::RDMHTTPModule::JsonSupportedPIDs ( const HTTPRequest request,
HTTPResponse response 
)

Return a list of pids supported by this device. This isn't used by the UI but it's useful for debugging.

Parameters
requestthe HTTPRequest
responsethe HTTPResponse
Returns
MHD_NO or MHD_YES
int ola::RDMHTTPModule::JsonSupportedSections ( const HTTPRequest request,
HTTPResponse response 
)

Return a list of sections to display in the RDM control panel. We use the response from SUPPORTED_PARAMS and DEVICE_INFO to decide which pids exist.

Parameters
requestthe HTTPRequest
responsethe HTTPResponse
Returns
MHD_NO or MHD_YES
int ola::RDMHTTPModule::JsonUIDIdentifyMode ( const HTTPRequest request,
HTTPResponse response 
)

Returns the identify state for the device.

Parameters
requestthe HTTPRequest
responsethe HTTPResponse
Returns
MHD_NO or MHD_YES
int ola::RDMHTTPModule::JsonUIDInfo ( const HTTPRequest request,
HTTPResponse response 
)

Return the device info for this uid.

Parameters
requestthe HTTPRequest
responsethe HTTPResponse
Returns
MHD_NO or MHD_YES
int ola::RDMHTTPModule::JsonUIDPersonalities ( const HTTPRequest request,
HTTPResponse response 
)

Returns the personalities on the device

Parameters
requestthe HTTPRequest
responsethe HTTPResponse
Returns
MHD_NO or MHD_YES
int ola::RDMHTTPModule::JsonUIDs ( const HTTPRequest request,
HTTPResponse response 
)

Return the list of uids for this universe as json

Parameters
requestthe HTTPRequest
responsethe HTTPResponse
Returns
MHD_NO or MHD_YES
void ola::RDMHTTPModule::PruneUniverseList ( const vector< OlaUniverse > &  universes)

This is called from the main http server whenever a new list of active universes is received. It's used to prune the uid map so we don't bother trying to resolve uids for universes that no longer exist.

int ola::RDMHTTPModule::RunRDMDiscovery ( const HTTPRequest request,
HTTPResponse response 
)

Run RDM discovery for a universe

Parameters
requestthe HTTPRequest
responsethe HTTPResponse
Returns
MHD_NO or MHD_YES
void ola::RDMHTTPModule::SetPidStore ( const ola::rdm::RootPidStore pid_store)

Can be called while the server is running. Ownership is not transferred.


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