You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
#ifndef __KERNEL_BOSCH_MODULE_HEADERS__
|
|
#define __KERNEL_BOSCH_MODULE_HEADERS__
|
|
|
|
#include "../components/base/basicEventHeap.h"
|
|
#include "../components/base/basicThread.h"
|
|
//#include "../data/protocol/protocolBVMS.h"
|
|
#include "../../data/curl/curlRequestsManager.h"
|
|
#include "kernelModule.h"
|
|
|
|
//#define DEBUG_BVMS_TRAFFIC
|
|
|
|
#ifndef CURL_MANAGER
|
|
#define CURL_MANAGER
|
|
#endif
|
|
|
|
class kernelModuleBosch : public kernelModule {
|
|
private:
|
|
CURL * m_pCURL;
|
|
curlRequestsManager * m_pHttpAccessManager;
|
|
basicMutex m_mResponseProtector;
|
|
basicEventHeap * m_pEventHeap;
|
|
REST_SETTINGS m_sRestSettings;
|
|
|
|
bool _send_request(CSTR url, CSTR post_string );
|
|
bool buildTargetEventMsg( CSTR Buffer, float az, float range, float lat, float lon, float alt, uint64_t extID, CSTR src_Name );
|
|
bool buildCameraEventMsg( CSTR Buffer, CSTR CamName, uint8_t Status );
|
|
public:
|
|
|
|
explicit kernelModuleBosch(uint32_t ModuleID);
|
|
virtual ~kernelModuleBosch();
|
|
|
|
virtual bool reloadSettings();
|
|
virtual bool startService();
|
|
virtual bool stopService(bool force = false);
|
|
virtual bool dispatchEvent(EVENT_CONTAINER * Evt);
|
|
virtual bool validate();
|
|
};
|
|
|
|
#endif
|