Formatting, add remote calling to c library

This commit is contained in:
2026-02-18 09:18:26 -05:00
parent 0088a9070b
commit 376b0b5285
49 changed files with 1915 additions and 1593 deletions

View File

@@ -1,6 +1,6 @@
#include <chrono>
#include <iostream>
#include <format>
#include <iostream>
#include <thread>
#include "libcontrol.h"
@@ -16,16 +16,16 @@ int main() {
std::cout << "Found " << controller->getModules().size() << " modules" << std::endl;
for (const auto& maybe_module : controller->getModules()) {
if (const auto& module = maybe_module.lock()) {
for (const auto &maybe_module : controller->getModules()) {
if (const auto &module = maybe_module.lock()) {
std::cout << "Found module " << (int)module->get_device_id();
if (module->get_type() == ModuleType_DISPLAY) {
module->actuate(std::format("BotChain \n\n\nModule ID: {}", module->get_device_id()));
module->actuate(
std::format("BotChain \n\n\nModule ID: {}", module->get_device_id()));
}
}
}
return 0;
return 0;
}