Add client/server fromEnv() without temporary Config on caller stack

This commit is contained in:
Michael Davidsaver
2021-08-05 09:57:00 -07:00
parent d6bf565ed6
commit 98edf61de8
18 changed files with 40 additions and 22 deletions
+1 -2
View File
@@ -27,8 +27,7 @@ int main(int argc, char* argv[]) {
server::SharedPV pv(server::SharedPV::buildMailbox());
pv.open(initial);
server::Config::fromEnv() // Configure a server using $EPICS_PVAS_* or $EPICS_PVA_*
.build()
server::Server::fromEnv() // Configure a server using $EPICS_PVAS_* or $EPICS_PVA_*
.addPV("my:pv:name", pv) // add (and name) one local PV
.run(); // run until SIGINT