summaryrefslogtreecommitdiff
path: root/tda.erl
diff options
context:
space:
mode:
Diffstat (limited to 'tda.erl')
-rw-r--r--tda.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/tda.erl b/tda.erl
index e030a57..863feea 100644
--- a/tda.erl
+++ b/tda.erl
@@ -1,7 +1,7 @@
-module(tda).
-export([start/0, client/1, stop/0]).
--export([ext/0, co/0]).
+-export([ext/0, co/0, snapshot/1]).
-define(TIMEOUT, 300000).
-define(CONNECT_TIMEOUT, 3000).
@@ -19,6 +19,9 @@ ext() ->
co() ->
tdaPid ! rose:invoke({present, 2}, {local, 51}, csta:lines(co)).
+snapshot(Device) ->
+ tdaPid ! rose:invoke({present, 2}, {local, 74}, csta:snapshot(Device)).
+
client({dial, Host, Port}) ->
io:format("Dial ~p:~p~n", [Host, Port]),
Conn = gen_tcp:connect(Host, Port,