we could read the kernel data and make a json file

This commit is contained in:
2024-06-25 20:46:54 +02:00
parent 8d2fee2406
commit bd3078bdef
30 changed files with 536 additions and 4603 deletions

View File

@@ -0,0 +1,32 @@
#include <string>
#include <list>
#include <iostream>
#include <thread>
#include <ecal/ecal.h>
#include "RTSMonitoringTask.h"
class RTCreateMonitoring
{
private:
/* data */
std::shared_ptr<RTSMonitoringTask> rtsMonTask;
public:
RTCreateMonitoring(std::shared_ptr<RTSMonitoringTask> rtsMonTask) {
this->rtsMonTask = rtsMonTask;
}
int operator()(const std::string& method_, const std::string& req_type_, const std::string& resp_type_ , const std::string& request_, std::string& response_) {
//make data from json
bool res = true; //this->rtsMonTask.CreateMonitoring(id, name, samplerate, sampleperiod, downtime, status);
return res ? 0 : -1;
}
};