From 84dfc90b6b311fdef45755889ab335d4a30328a7 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Fri, 23 Oct 2015 16:35:55 +0200 Subject: Experimental --- tda.erl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tda.erl b/tda.erl index 6c0f901..5d26350 100644 --- a/tda.erl +++ b/tda.erl @@ -58,6 +58,9 @@ associate_abort(Bin) -> % <<161,12,2,1,1,2,2,0,211,48,3,10,1,2>> % <<162,11,2,1,1,48,6,2,2,0,211,5,0>> system_status(Bin) -> - % broken, no Invoke type - {ok, Invoke} = 'Remote-Operations-Generic-ROS-PDUs':decode('Invoke', Bin), - Invoke. + Inv = #'Invoke'{invokeId = 1, opcode = {local, 211}}, + io:format("~p~n", [Inv]), + case 'Remote-Operations-Generic-ROS-PDUs':encode('Invoke', Inv) of + {ok, Invoke} -> Invoke; + {error, Reason} -> Reason + end. -- cgit v1.2.3