aboutsummaryrefslogtreecommitdiff
path: root/nxt-python-fantom/scripts/nxt_test
diff options
context:
space:
mode:
authorTat-Chee Wan (USM)2011-06-03 12:09:02 +0800
committerTat-Chee Wan (USM)2011-06-03 12:09:02 +0800
commita79dc637d60b33032e951f5338fdd9b6a47a5b46 (patch)
tree0630e7277c7f89a3fdf9df35ce637c97c3c295b9 /nxt-python-fantom/scripts/nxt_test
parente4ee512ec341cb349d51c7671092d203472b840a (diff)
removed nxt-python-fantom hack, it is committed upstream
Diffstat (limited to 'nxt-python-fantom/scripts/nxt_test')
-rw-r--r--nxt-python-fantom/scripts/nxt_test33
1 files changed, 0 insertions, 33 deletions
diff --git a/nxt-python-fantom/scripts/nxt_test b/nxt-python-fantom/scripts/nxt_test
deleted file mode 100644
index 5cc0fcd..0000000
--- a/nxt-python-fantom/scripts/nxt_test
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/usr/bin/env python
-
-#Lists various information from all bricks it can connect to.
-
-import sys, traceback
-import nxt.locator
-import nxt.brick
-
-b = None
-socks = nxt.locator.find_bricks()
-for sock in socks:
- try:
- b = sock.connect()
-
- name, host, signal_strength, user_flash = b.get_device_info()
- print 'NXT brick name: %s' % name
- print 'Host address: %s' % host
- print 'Bluetooth signal strength: %s' % signal_strength
- print 'Free user flash: %s' % user_flash
- prot_version, fw_version = b.get_firmware_version()
- print 'Protocol version %s.%s' % prot_version
- print 'Firmware version %s.%s' % fw_version
- millivolts = b.get_battery_level()
- print 'Battery level %s mV' % millivolts
- except:
- print "Error with brick:"
- traceback.print_tb(sys.exc_info()[2])
- print str(sys.exc_info()[1])
- if b:
- b.sock.close()
-
-if not b:
- print "No bricks found!"