12 lines
432 B
Batchfile
12 lines
432 B
Batchfile
require ePowerSwitch,ponsin_h
|
|
|
|
epicsEnvSet("ASYN_PORT", "myDriverPort")
|
|
epicsEnvSet("DB", "$(ePowerSwitch_DB)")
|
|
|
|
# I use HTTP to use TCP and disconnect after, but no disconnection is done, so I disconnect manually.
|
|
drvAsynIPPortConfigure("$(ASYN_PORT)","127.0.0.1:55555 http", 0, 0, 0)
|
|
|
|
dbLoadTemplate("$(DB)template$(EPOWERSWITCH_SOCKET_NUMBER).substitutions", "PORT=$(ASYN_PORT), DEVICE_NAME=$(DEVICE_NAME), DB=$(DB)")
|
|
|
|
iocInit()
|