/* * Hamlib sample C++ program */ #include #include int main(int argc, char* argv[]) { Rig myRig = Rig(RIG_MODEL_DUMMY); try { myRig.open(); myRig.setFreq(MHz(144)); cout << myRig.getLevelI(RIG_LEVEL_STRENGTH) << "dB" << endl; myRig.close(); } catch (const RigException &Ex) { Ex.print(); return 1; } return 0; }