summaryrefslogtreecommitdiff
path: root/csta.erl
diff options
context:
space:
mode:
Diffstat (limited to 'csta.erl')
-rw-r--r--csta.erl8
1 files changed, 6 insertions, 2 deletions
diff --git a/csta.erl b/csta.erl
index ca5fb09..60aaaee 100644
--- a/csta.erl
+++ b/csta.erl
@@ -1,6 +1,7 @@
-module(csta).
--export([lines/1, decode/1, status/0, snapshot/1]).
+-export([lines/1, decode/1, snapshot/1]).
+-export([decodeStatus/1, statusOk/0]).
-include("CSTA-escape-service.hrl").
-include("CSTA-snapshot-device.hrl").
@@ -21,7 +22,10 @@ lines(Device) ->
{kmeSystemData, {getSystemData, {request, {deviceList,
{category, {standardDevice, Device}}}}}}}}).
-status() ->
+decodeStatus(Data) ->
+ 'CSTA-system-status':decode('SystemStatusArg', Data).
+
+statusOk() ->
'CSTA-system-status':encode('SystemStatusRes', {noData, []}).
snapshot(Device) ->