This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
connectornot-lisbon-py [2015/04/30 08:26] zoza created |
connectornot-lisbon-py [2015/04/30 08:30] zoza |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== get-values.py : interfacing incoming values from the app and ====== | + | ====== get-values.py : interfacing incoming values from the app with the physical system ====== |
+ | needs [[servoclass-py|servoclass.py]] and [[ledclass-py|ledclass.py]] in the same folder | ||
<code python> | <code python> | ||
#!/usr/bin/env python | #!/usr/bin/env python | ||
Line 49: | Line 50: | ||
try: | try: | ||
#datas = codecs.open("values-test.txt", "r", encoding="utf-8") | #datas = codecs.open("values-test.txt", "r", encoding="utf-8") | ||
- | datas = urllib2.urlopen("http://kucjica.kucjica.org/androidtesting/arduino-get.php") | + | datas = urllib2.urlopen("http://url-to-php-file-on-remote-server") |
line = datas.read() | line = datas.read() | ||
#print line | #print line |