contrib/rpc_examples: Add (dis)connect methods 89/5189/2
authorMarc Schink <openocd-dev@marcschink.de>
Mon, 20 May 2019 16:14:46 +0000 (18:14 +0200)
committerTomas Vanek <vanekt@fbl.cz>
Thu, 2 Jan 2020 21:21:12 +0000 (21:21 +0000)
commit223c28f9b9f685c98fb6882e1657b6b53379a1a6
tree73b87fc575fc304a2152548508fe2c7e694084d8
parent6568d29cc1d0d94daafec5bdb73de7d4f17da257
contrib/rpc_examples: Add (dis)connect methods

Add these methods such that the OpenOcd class can also be used outside
of a 'with' statement.

Change-Id: I927c93fff2dc05cc74daa56360a7262e736a639f
Signed-off-by: Marc Schink <openocd-dev@marcschink.de>
Reviewed-on: http://openocd.zylin.com/5189
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
contrib/rpc_examples/ocd_rpc_example.py