#include #include "ubus-cxx.hpp" inline void example_for_checking_if_there_is_a_key() { if (ubus::call("service", "list").filter("cron")) { std::cout<<"Cron is active (with or without instances) "<(t); std::cout<<"["<(t); std::cout< int { return blobmsg_add_string(buf, "config", "nginx"); }; for (auto t : ubus::call("uci", "get", set_arg).filter("values")) { //NOLINTNEXTLINE(cppcoreguidelines-pro-type-const-cast) auto x = const_cast(t); std::cout<(t); std::cout< void { auto end = message.end(); auto explore_internal = [&end](auto & explore_ref, auto it, size_t depth=1) -> void { std::cout<(*it); if (first) { first = false; } else { std::cout<<",\n"; } std::cout< int { try { example_for_checking_if_there_is_a_key(); example_for_getting_values(); example_for_sending_message(); example_for_exploring(); example_for_recursive_exploring(); return 0; } catch (const std::exception & e) { std::cerr<