From 847b4a5d588ec504865398c21c3bcb73a6fc1fab Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 7 Jan 2023 13:47:41 +0100 Subject: implement get node --- confui/mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'confui/mainwindow.cpp') diff --git a/confui/mainwindow.cpp b/confui/mainwindow.cpp index b5bbdf0..4c9b857 100644 --- a/confui/mainwindow.cpp +++ b/confui/mainwindow.cpp @@ -7,6 +7,7 @@ #include "ui_tab_automations.h" #include "ui_tab_node_overview.h" #include "serial.h" +#include "../shared/pclient.h" #include "main.h" CDMeshConnector *g_cd_mesh_connector = nullptr; @@ -73,6 +74,10 @@ void CDMainWindow::update() { QAction* menu_port = menu_options_serialport->addAction(QString::fromStdString(port)); connect(menu_port, &QAction::triggered, this, [this, port](){ menu_set_serial_port(port); }); } + + cd_s_bin* msg = cd_cmd_gen_get_node(true, NULL); + cd_pclient_send(msg); + free(msg); } void CDMainWindow::menu_refresh() { update(); } -- cgit v1.2.3