1
easyE4 / Antw:Heuverteiler
« Letzter Beitrag von radar17892 am Heute um 00:22:01 »Hallo Fredi,
was funktioniert denn nicht?
was funktioniert denn nicht?
EASY Mode
RUN
API-Antwort: [{"T1(2;0;2000)": 0, "SUCCESS": 0}]
API-URL: 192.168.1.2/api/set/par?op=FB&v1=T1(2;0;2000)
Timer I1
Fehler: HTTP Response Code 401
URL: 192.168.1.2/api/get/adm?elm=FBT1(2;1)
Timer Q1
Fehler: HTTP Response Code 401
URL: 192.168.1.2/api/get/adm?elm=FBT1(1;0)
Timer QV
Fehler: HTTP Response Code 401
URL: http://192.168.1.2/api/get/adm?elm=FBT1(3;0)
Timer EN
Fehler: HTTP Response Code 401
URL: 192.168.1.2/api/get/adm?elm=FBT1(0;0)
public String getFunctionBlocks(int index, String fBlock, int pinType, int pinPosition) {
try {
String endpoint = String.format("/get/adm?elm=FB%s%d(%d;%d)",
URLEncoder.encode(fBlock, StandardCharsets.UTF_8),
index, pinType, pinPosition);
String response = apiKeySendGetRequest(endpoint);
if (response != null) {
System.out.println("API-Antwort: " + response);
System.out.println("API-URL: " + baseUrl + endpoint);
return response;
}
} catch (Exception e) {
e.printStackTrace();
}
return null;
}
Support:
Bitte kontaktieren Sie ihre lokale Vertretung:
http://www.eaton.com/aftersales