|
|
@ -97,11 +97,16 @@ public class RFIDController { |
|
|
|
String result = ""; |
|
|
|
try { |
|
|
|
HttpClient client = HttpClients.createDefault(); |
|
|
|
// String url = "http://" + ip + "/api/RFIDInterface/RFID_WriteEPC?sDevID=" + sDevID |
|
|
|
// + "&EAS=" + EAS |
|
|
|
// + "&Type=" + Type |
|
|
|
// + "&Code=" + Code |
|
|
|
// + "&Tid=" + Tid; |
|
|
|
String url = "http://" + ip + "/api/RFIDInterface/RFID_WriteEPC?sDevID=" + sDevID |
|
|
|
+ "&EAS=" + EAS |
|
|
|
+ "&Type=" + Type |
|
|
|
+ "&Code=" + Code |
|
|
|
+ "&Tid=" + Tid; |
|
|
|
+ "&nEas=" + EAS |
|
|
|
+ "&nType=" + Type |
|
|
|
+ "&sCodeID=" + Code |
|
|
|
+ "&sTid=" + Tid; |
|
|
|
HttpGet httpGet = new HttpGet(url); |
|
|
|
httpGet.setHeader("Content-Type", "application/x-www-form-urlencoded"); |
|
|
|
System.out.println("调用URL: " + httpGet.getURI()); |
|
|
|