From ed8124bd452ad2d3d927c2d95ef718fec81a4180 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 29 Oct 2015 13:06:51 +0100 Subject: Trap exit --- csta.erl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'csta.erl') 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) -> -- cgit v1.2.3