require asyn require stream # Parameterized snippet to load support for the eplue EE31 environmental sensor used at ICON and Neutra. # cmd file needs the macros INSTR, typically capital letter name of the instrument, and # and MOXA_ADDR on format hostname:port. epicsEnvSet("PROTO", "$(epluse_DB)epluse.proto") ### We have autoconnect and disconnectOnReadTimeout enabled, so that it can come and go ## without generating too much noise. We detect connected state via asyn record .CNCT # drvAsynIPPortConfigure(portName, hostInfo, priority, noAutoConnect, noProcessEos) drvAsynIPPortConfigure("$(INSTR)-epluse", "$(MOXA_ADDR)",0,0,0) asynSetOption("$(INSTR)-epluse", -1, "disconnectOnReadTimeout", "Y") dbLoadRecords("$(epluse_DB)epluse.db", "PREFIX=SQ:$(INSTR), PROTO=$(PROTO), PORT=$(INSTR)-epluse")