Noolite::sendCommand was implemented

This commit is contained in:
2024-05-29 09:45:57 +02:00
parent 7055206fb1
commit 49b0e8d0cc
8 changed files with 83 additions and 50 deletions

View File

@@ -2,6 +2,7 @@
#define NOOLITE_H
#include <vector>
#include <optional>
#include "interfaces/iusbdevice.h"
@@ -37,10 +38,12 @@ public:
Noolite(IUsbDevice *device = nullptr);
~Noolite();
bool sendCommand(int channel, Command command, Params params = Params());
bool sendCommand(unsigned char channel, Command command, const Params &params = Params());
private:
IUsbDevice *m_device;
std::optional<Data> composeCommand(unsigned char channel, Command command, const Params &params) const;
};
}