X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=miTask.icl;h=fda80c843d7a1ed72aa83fe83f9d794255a98854;hb=be3f747f775c05facb8a34cf0baba523401b88fb;hp=45ee7ddad1247292b3d1f3bdf827816f1b32df66;hpb=32ff545d18253da21f25c69c6d99b96f90668773;p=mTask.git diff --git a/miTask.icl b/miTask.icl index 45ee7dd..fda80c8 100644 --- a/miTask.icl +++ b/miTask.icl @@ -24,9 +24,35 @@ import iTasks._Framework.Serialization import TTY, iTasksTTY +//derive class iTask ByteSize, Parity, BaudRate, TTYSettings, TCPSettings +//derive class iTask MTaskDeviceSpec, MTaskResource, MTaskTask, MTaskDevice + Start :: *World -> *World -Start world = startEngine (mTaskManager - >>* [OnAction (Action "Shutdown") (always $ shutDown)]) world +Start world = startEngine (viewInformation "" [] md) world + where + md = + { deviceTask = Just $ TaskId 0 0 + , deviceError = Just "" + , deviceChannels = "abc" + , deviceName = "hoi" + , deviceTasks = [] + , deviceData = TCPDevice {TCPSettings + |host="localhost", + port=8888 + } + , deviceSpec = Just {MTaskDeviceSpec + |haveLed = True + ,haveAio = True + ,haveDio = True + ,maxTask = 42 + ,maxSDS = 5 + } + } + + + +//Start world = startEngine (mTaskManager +// >>* [OnAction (Action "Shutdown") (always $ shutDown)]) world mTaskManager :: Task () mTaskManager = startupDevices >>| anyTask