summaryrefslogtreecommitdiff
path: root/csta.erl
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-10-29 13:06:51 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-10-29 13:06:51 +0100
commited8124bd452ad2d3d927c2d95ef718fec81a4180 (patch)
tree06413816431988def5dfad7b4a49cf411219631e /csta.erl
parent515371ecf04c1fd274c6ea6d8f1d60fbefc4587f (diff)
Trap exit
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) ->