summaryrefslogtreecommitdiff
path: root/src/monitor.erl
blob: 36ef0f675479cd4e62414b49b310e2dbf9db72d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-module(monitor).

-export([decode/1, encode/1]).

-include("CSTA-monitor-start.hrl").
%-include("CSTA-status-reporting.hrl").
-include("CSTA-device-identifiers.hrl").

decode(Data) ->
	'CSTA-monitor-start':decode('MonitorStartResult', Data).

encode(Device) ->
	'CSTA-monitor-start':encode('MonitorStartArgument',
		#'MonitorStartArgument'{
		   monitorObject = {deviceObject, #'DeviceID'{
			deviceIdentifier = {deviceNumber, Device}}}}).