@@ -295,7 +295,7 class ABSConfiguration(Configuration): | |||
|
295 | 295 | dot = '.' |
|
296 | 296 | module_ip = dot.join(module_seq)+'.'+str(module_num) |
|
297 | 297 | module_port = self.device.port_address |
|
298 |
write_route = 'http://'+module_ip+':'+str(module_port)+'/ |
|
|
298 | write_route = 'http://'+module_ip+':'+str(module_port)+'/write' | |
|
299 | 299 | |
|
300 | 300 | header = 'JROABSCeCnModCnMod01000108SNDFexperimento1.ab1' |
|
301 | 301 | module = 'ABS_'+str(module_num) |
@@ -450,7 +450,7 class ABSConfiguration(Configuration): | |||
|
450 | 450 | dot = '.' |
|
451 | 451 | module_ip = dot.join(module_seq)+'.'+str(module) |
|
452 | 452 | module_port = self.abs_conf.device.port_address |
|
453 |
write_route = 'http://'+module_ip+':'+str(module_port)+'/ |
|
|
453 | write_route = 'http://'+module_ip+':'+str(module_port)+'/write' | |
|
454 | 454 | |
|
455 | 455 | #print write_route |
|
456 | 456 |
@@ -53,8 +53,8 def readbits(): | |||
|
53 | 53 | else: |
|
54 | 54 | return {"status": 0, "message": "There's a problem reading bits", "allbits" : ""} |
|
55 | 55 | |
|
56 |
@route('/ |
|
|
57 |
def |
|
|
56 | @route('/write', method='POST') | |
|
57 | def writebits(): | |
|
58 | 58 | """ |
|
59 | 59 | This function sends configurations to the module tcp_ |
|
60 | 60 | """ |
General Comments 0
You need to be logged in to leave comments.
Login now