I want to create a flutter plugin for Linux. I don't know very well C++ but I want to try. Is it a good idea to create shell command in C++ ? For example if I need Bluetooth devices and I do
auto pPipe = ::popen("bluetoothctl scan on", "r");
And read ouptut stream to get scan result, is it a good practice in C++ ? Bluetooth is for example, but it would be wifi, 4G, etc ...