]> git.meshlink.io Git - meshlink/blobdiff - test/basicpp.cpp
Allow Catta to be disabled.
[meshlink] / test / basicpp.cpp
index 02d4cb61e4b7d70c286b3a77a085d78a9ffb148e..ed2815a1ce3a4857b79b9d9ffd8c4d2eb5dbb90d 100644 (file)
@@ -25,6 +25,10 @@ int main(int argc, char *argv[]) {
                return 1;
        }
 
+       // Disable local discovery.
+
+       mesh.enable_discovery(false);
+
        // Start and stop the mesh.
 
        if(!mesh.start()) {
@@ -66,6 +70,8 @@ int main(int argc, char *argv[]) {
 
        // Start and stop the mesh.
 
+       mesh.enable_discovery(false);
+
        if(!mesh.start()) {
                cerr << "Foo could not start a third time\n";
                return 1;