我的主要問題是從這個已過時的命令進行轉換:
http.begin("http://192.168.1.43/getUID.php")
對此
WiFiClient client;
HTTPClient http;
String serverPath = serverName "?rfid=" content;
// Your Domain name with URL path or IP address with path
http.begin(client, serverPath.c_str());
我在客戶端和服務器路徑中放了什么?
uj5u.com熱心網友回復:
你開始一個會話,http.begin(client, serverPath)然后用http.GET()or發送一個請求http.POST()
所以你的代碼應該像這樣作業:
WiFiClient client;
HTTPClient http;
http.begin(client, "http://192.168.1.43/getUID.php");
http.GET();
轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/411189.html
標籤:
