我想在方法链接arduino上发送两个变量,但我的代码只有一个变量
client.println("GET /input.php?id="+String(v1_dist_cm)+" HTTP/1.0");
如何在同一个链接上发送两个变量
我需要回答
您可以使用&
字符分隔多个变量:
client.println("GET /input.php?id=" + String(v1_dist_cm) + "&anothervar=" + String(anotherVar) + " HTTP/1.0");