The EmpathicBuilding data provider class.
Definition EmpathicBuildingDataProviderBase.qc.dox.h:28
RestClient::RestClient rest
The REST client object for API calls.
Definition EmpathicBuildingDataProviderBase.qc.dox.h:40
The EmpathicBuilding watch sensor data provider class.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:33
stop()
Stops listening for new events.
const ProviderSummaryInfo
Provider summary info.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:41
constructor(RestClient::RestClient rest, *Logger::LoggerInterface logger, hash< auto > org, hash< auto > loc, hash< auto > sensor)
Create the object from the REST connection.
Counter cnt()
I/O thread counter.
Condition cond()
I/O thread condition.
destructor()
Destroys the object.
observersReady()
Called when all observers have been added to the object.
hash< string, hash< DataProviderMessageInfo > > getEventTypesImpl()
Returns a hash of all supported event types.
int tid
TID of the I/O thread.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:67
*string getDesc()
Returns the data provider description.
hash< auto > org
Org data.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:55
hash< auto > loc
Loc data.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:58
hash< DataProvider::DataProviderInfo > getStaticInfoImpl()
Returns data provider static info.
hash< auto > getEvent(*reference< hash< auto > > info)
Returns event data.
const PollInterval
Default poll interval in milliseconds.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:51
const ProviderInfo
Provider info.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:37
start()
Connects and starts receiving messages.
hash< auto > sensor
Sensor data.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:61
Mutex m()
I/O thread lock.
string getName()
Returns the data provider name.
bool stop_flag
Stop flag.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:79
*code start_thread
callable value to start a new thread; must take a callable object as a parameter and return an intege...
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:64
stopEvents()
Called to stop generating events.
auto getExampleEventDataImpl(string event_id)
Returns example data for the given observable event.
const RequestType
Request type.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:45
timeout poll_interval_ms
Poll interval in milliseconds.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:82
const ResponseType
Response type.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:48
Qore EmpathicBuildingDataProvider module definition.
Definition EmpathicBuildingDataProvider.qc.dox.h:26
const EmpathicBuildingSensorType
Sensor data type constant.
Definition EmpathicBuildingSensorDataProvider.qc.dox.h:162
const EVENT_EB_SENSOR
Empathiic Building sensor event constant.
Definition EmpathicBuildingWatchSensorDataProvider.qc.dox.h:30