sndlock/kirdy.hpp

15 lines
336 B
C++
Raw Normal View History

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();
2025-01-21 10:58:43 +08:00
void set_tec_current(float milliamps);
2025-01-19 18:22:51 +08:00
};