2025-01-19 18:22:51 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <asio.hpp>
|
2025-01-19 18:56:04 +08:00
|
|
|
#include <json/json.h>
|
2025-01-19 18:22:51 +08:00
|
|
|
|
|
|
|
class Kirdy {
|
|
|
|
private:
|
2025-01-19 19:18:13 +08:00
|
|
|
asio::ip::tcp::iostream socket;
|
2025-01-19 18:56:04 +08:00
|
|
|
Json::Value command(Json::Value &request);
|
2025-01-19 18:22:51 +08:00
|
|
|
public:
|
|
|
|
Kirdy(asio::string_view host, asio::string_view service);
|
|
|
|
float get_laser_temp();
|
|
|
|
};
|