@@ -295,7 +295,7 class ABSConfiguration(Configuration): | |||||
295 | dot = '.' |
|
295 | dot = '.' | |
296 | module_ip = dot.join(module_seq)+'.'+str(module_num) |
|
296 | module_ip = dot.join(module_seq)+'.'+str(module_num) | |
297 | module_port = self.device.port_address |
|
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 | header = 'JROABSCeCnModCnMod01000108SNDFexperimento1.ab1' |
|
300 | header = 'JROABSCeCnModCnMod01000108SNDFexperimento1.ab1' | |
301 | module = 'ABS_'+str(module_num) |
|
301 | module = 'ABS_'+str(module_num) | |
@@ -450,7 +450,7 class ABSConfiguration(Configuration): | |||||
450 | dot = '.' |
|
450 | dot = '.' | |
451 | module_ip = dot.join(module_seq)+'.'+str(module) |
|
451 | module_ip = dot.join(module_seq)+'.'+str(module) | |
452 | module_port = self.abs_conf.device.port_address |
|
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 | #print write_route |
|
455 | #print write_route | |
456 |
|
456 |
@@ -53,8 +53,8 def readbits(): | |||||
53 | else: |
|
53 | else: | |
54 | return {"status": 0, "message": "There's a problem reading bits", "allbits" : ""} |
|
54 | return {"status": 0, "message": "There's a problem reading bits", "allbits" : ""} | |
55 |
|
55 | |||
56 |
@route('/ |
|
56 | @route('/write', method='POST') | |
57 |
def |
|
57 | def writebits(): | |
58 | """ |
|
58 | """ | |
59 | This function sends configurations to the module tcp_ |
|
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