import signal
import sys
+n=0
+
# set gpio lines
def set_line_values(chip_path, line_values):
value_str = {Value.ACTIVE: "Active", Value.INACTIVE: "Inactive"}
@cherrypy.expose
@cherrypy.tools.json_out()
def getData(self):
- a = 'a few'
- b = ' psi'
- n = 42
- c = str(n) + b
+ global n
+ n = n + 1
+ a = ' psi'
+ b = ' N'
+ p = str(n) + a
+ t = str(n) + b
return {
- 'pressure' : c,
- 'thrust' : 'more N'
+ 'pressure' : p,
+ 'thrust' : t
}