Revision 66 hci/trunk/eneraptor-web-app/grails-app/controllers/com/eneraptor/hci/LogicRequestController.groovy

View differences:

LogicRequestController.groovy
11 11
		
12 12
		def output = "";
13 13
		output += reportService.println("Conection test using")
14
		output += reportService.println("Logic IP address: " + InternalConfig.findByConfigId('logic-ip').configVal)
15
		output += reportService.println("Logic port number: " + InternalConfig.findByConfigId('logic-port').configVal)
14
		output += reportService.println("Logic IP address: " + session.hwSet.IPaddress)
15
		output += reportService.println("Logic port number: " + session.hwSet.portNumber)
16 16
		
17 17
		output += reportService.println("Test started")
18 18
		
19 19
		String reqStr = "<?xml version=\"1.0\"?><hci-request type=\"checkConnection\"><data>12345</data></hci-request>"
20
		Map testReply = hciLogicCommService.getReplyToRequest(reqStr)
20
		Map testReply = hciLogicCommService.getReplyToRequest(reqStr,session.hwSet.IPaddress,session.hwSet.portNumber)
21 21
		
22 22
		if(testReply['status'] == "error") {
23 23
			output += reportService.println("<span style='color:red;'>Error: " + testReply['content'] + "</span>")

Also available in: Unified diff