We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eeac195 commit 7560f6dCopy full SHA for 7560f6d
src/viam/examples/modules/simple/main.cpp
@@ -76,6 +76,8 @@ ProtoStruct MySensor::get_readings(const ProtoStruct&) {
76
}
77
78
int main(int argc, char** argv) try {
79
+ // Every Viam C++ SDK program must have one and only one Instance object which is created before
80
+ // any other C++ SDK objects and stays alive until all Viam C++ SDK objects are destroyed.
81
Instance inst;
82
83
Model mysensor_model("viam", "sensor", "mysensor");
0 commit comments