import sys, time
import ftrobopy

# Einlesen und Abspeichern eines TXT Camera Bildes (jpeg)

txt=ftrobopy.ftrobopy('192.168.7.2', 65000)
txt.startCameraOnline()
time.sleep(2.5)
pic = None
while pic == None:
  pic = txt.getCameraFrame()

f=open('TXTCamPic.jpg','w')
f.write(''.join(pic))
f.close()


@@ -3,13 +3,8 @@
 port
- sys,
  tim
@@ -108,27 +108,27 @@
 py('
-192.168.7.2', 65000
+auto')%0Atime.sleep(2
 )%0Atx
@@ -228,11 +228,71 @@
 e()%0A
-%0Af=
+  if pic != None:%0A    if len(pic) == 0:%0A      pic = None%0A%0Awith 
 open
@@ -312,13 +312,22 @@
 pg',
+ 
 'w')
-%0A
+ as f:%0A  
 f.wr
@@ -348,15 +348,4 @@
 c))%0A
-f.close()%0A%0A

improve SimpleCameraDemo.py