| | |
| | | } |
| | | } |
| | | |
| | | // Shared.println(getName(), "Finished"); |
| | | Shared.println(getName(), "Finished"); |
| | | Shared.traceInformation(getName(), Shared.getMessage("Finishing")); |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception e) |
| | | { |
| | | // Shared.printstack(getName(), e); |
| | | Shared.printstack(getName(), e); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | catch (Exception exception) |
| | | { |
| | | // exception.printStackTrace(); |
| | | exception.printStackTrace(); |
| | | if ((access.alarms.alarm_offline > 0) || (firstTime == true)) |
| | | { |
| | | firstTime = false; |
| | | // Shared.printstack(getName(), exception); |
| | | Shared.printstack(getName(), exception); |
| | | } |
| | | |
| | | offline(accessclone); // todas las camaras offline |
| | |
| | | if ((accessclone.alarms.alarm_offline > 0) || (firstTime == true)) |
| | | { |
| | | firstTime = false; |
| | | // Shared.println(getName(), Shared.getMessage("Access online")); |
| | | Shared.println(getName(), Shared.getMessage("Access online")); |
| | | } |
| | | |
| | | lastOnline = System.currentTimeMillis(); |
| | |
| | | AccessEnforcementInformation information = accessclone.getDeviceInformation(); |
| | | |
| | | // https://10.106.7.18/art?operation=getStatus |
| | | String url = "https://" + information.neural.connection.address + ":" + information.neural.connection.port + "/art?operation=getStatus"; |
| | | String url = "https://" + information.neural.connection.address + "/art?operation=getStatus"; |
| | | |
| | | String user = Shared.getText(information.neural.connection.user); |
| | | String password = Shared.getText(information.neural.connection.password); |
| | |
| | | |
| | | url += "&token=" + user + "," + password; |
| | | |
| | | // System.out.println(getName() + " - " + url); |
| | | System.out.println(getName() + " - " + url); |
| | | byte[] response = HttpsRequest.requestBytes(url, user, password, new byte[0], 30000, 60000); |
| | | NeuralStatus neuralStatus = Serialization.deserialize(NeuralStatus.class, response); |
| | | |