A web server bridging IOC and clients such as Express.js or Django through GraphQL.
node dist
Now the Channel Access is available to other clients through GraphQL.
note: before running the command above, a valid EPICS base installation needs to exist. EPICS_HOST_ARCH
and EPICS_BASE
need to be set as well. Otherwise a pre-compiled binary will be used, which will not be guaranteed to work on your system.
It is recommended to run the server as a container.
For example:
docker run -d onichandame/epics-proxy:latest
type Channel {
value: String!
}
query ca(pvname: String!): Channel!
mutation ca(pvname: String!, value: String!): Boolean!
returns true on success, false otherwise.(not tested yet)
subscription ca(pvname: String!): Channel!