summaryrefslogtreecommitdiff
path: root/nxt-python-fantom/nxt/fantomglue.py
diff options
context:
space:
mode:
Diffstat (limited to 'nxt-python-fantom/nxt/fantomglue.py')
-rw-r--r--nxt-python-fantom/nxt/fantomglue.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nxt-python-fantom/nxt/fantomglue.py b/nxt-python-fantom/nxt/fantomglue.py
index 89c08b2..5e85e03 100644
--- a/nxt-python-fantom/nxt/fantomglue.py
+++ b/nxt-python-fantom/nxt/fantomglue.py
@@ -91,6 +91,10 @@ class USBSocket:
self._sock = device
self.debug = False
+ def device_name(self):
+ devinfo = self._sock.deviceinfo()
+ return devinfo.name
+
def connect(self):
addr, port = addrport
if self._sock is None: