16 lines
355 B
C++
16 lines
355 B
C++
|
#pragma once
|
||
|
|
||
|
#include <asio.hpp>
|
||
|
#include <nlohmann/json.hpp>
|
||
|
|
||
|
class Kirdy {
|
||
|
private:
|
||
|
asio::io_context io_context;
|
||
|
asio::ip::tcp::socket *socket;
|
||
|
nlohmann::json command(nlohmann::json &request);
|
||
|
public:
|
||
|
Kirdy(asio::string_view host, asio::string_view service);
|
||
|
~Kirdy();
|
||
|
float get_laser_temp();
|
||
|
};
|