-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e19e3e
commit 2f17962
Showing
5 changed files
with
162 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from fastcs import FastCS | ||
from fastcs.attributes import AttrR, AttrW | ||
from fastcs.controller import Controller | ||
from fastcs.datatypes import Bool, Int | ||
from fastcs.transport.epics.options import EpicsIOCOptions, EpicsOptions | ||
from fastcs.transport.rest.options import RestOptions, RestServerOptions | ||
|
||
|
||
class TestController(Controller): | ||
read_int: AttrR = AttrR(Int(), initial_value=0) | ||
write_bool: AttrW = AttrW(Bool()) | ||
|
||
|
||
transport_options = [ | ||
RestOptions(rest=RestServerOptions(port=8090)), | ||
EpicsOptions(ioc=EpicsIOCOptions(pv_prefix="SYSTEM-DEVICE")), | ||
] | ||
instance = FastCS( | ||
TestController(), | ||
transport_options, | ||
) | ||
instance.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters