summaryrefslogtreecommitdiff
path: root/csta.erl
diff options
context:
space:
mode:
Diffstat (limited to 'csta.erl')
-rw-r--r--csta.erl10
1 files changed, 9 insertions, 1 deletions
diff --git a/csta.erl b/csta.erl
index 6aa904a..ca5fb09 100644
--- a/csta.erl
+++ b/csta.erl
@@ -1,8 +1,10 @@
-module(csta).
--export([lines/1, decode/1, status/0]).
+-export([lines/1, decode/1, status/0, snapshot/1]).
-include("CSTA-escape-service.hrl").
+-include("CSTA-snapshot-device.hrl").
+-include("CSTA-device-identifiers.hrl").
decode(Data) ->
'CSTA-escape-service':decode('EscapeArgument', Data).
@@ -21,3 +23,9 @@ lines(Device) ->
status() ->
'CSTA-system-status':encode('SystemStatusRes', {noData, []}).
+
+snapshot(Device) ->
+ 'CSTA-snapshot-device':encode('SnapshotDeviceArgument',
+ #'SnapshotDeviceArgument'{
+ snapshotObject = #'DeviceID'{
+ deviceIdentifier = {deviceNumber, Device}}}).