diff options
author | manojgudi | 2013-12-27 09:57:34 +0530 |
---|---|---|
committer | manojgudi | 2013-12-27 09:57:34 +0530 |
commit | 212d3b72f68fd2323051ce0c627c98e23c99f731 (patch) | |
tree | 2072fe40b9a484f388cbd3f38779d2e6a33caae3 /gr-sbhs/python/testing.py | |
parent | c15e3c60add01c2af7ebab049e97e245e53792a8 (diff) | |
download | gnuradio-212d3b72f68fd2323051ce0c627c98e23c99f731.tar.gz gnuradio-212d3b72f68fd2323051ce0c627c98e23c99f731.tar.bz2 gnuradio-212d3b72f68fd2323051ce0c627c98e23c99f731.zip |
Incomplete clean up | gr-sbhs
Diffstat (limited to 'gr-sbhs/python/testing.py')
-rwxr-xr-x | gr-sbhs/python/testing.py | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/gr-sbhs/python/testing.py b/gr-sbhs/python/testing.py deleted file mode 100755 index a71655b40..000000000 --- a/gr-sbhs/python/testing.py +++ /dev/null @@ -1,60 +0,0 @@ -#!/usr/bin/python -tt - -import serial -import time -from time import sleep - -ser = serial.Serial('/dev/ttyUSB0', baudrate=9600, timeout=1) -ser.open() - - -from time import sleep - -import urllib -import urllib2 -from sbhs import * -#from bottle import * -from scan_machines import * - - -new_device = Sbhs() -new_device.connect(252) -new_device.connect_device(0) - - -for i in range(10): - #new_device.setHeat(10) - #new_device.setFan(30) - f=new_device.getTemp() - print f - time.sleep(3) -ser.close() -#f = 10 - -#@route('/temp') -#def hello(): -# return str(f) -#run(host='localhost', port=8080, debug=True) -''' -#writing to google app-engine - data = {} - data['temp'] = '30'#float value not int - data['heat'] = '200' - data['fan'] = '100' - url_val = urllib.urlencode(data) - print url_val - - url = 'http://remote-cloudlabs.appspot.com/hello' - full_url = url + '?' + url_val - data = urllib2.urlopen(full_url) - -#reading from url - req = urllib2.Request('http://remote-cloudlabs.appspot.com/display') - response = urllib2.urlopen(req) - data = response.read() - print data - - - time.sleep(10) - -''' |