0
私のarduinoスクリプトのclient.printに変数を挿入しようとしていますが、スクリプトを動作させることができません。私の変数はdoubleと宣言されています。私の出力は電圧であり、私は小数点、任意の提案が必要ですか? Arduinoの文字列でArduino Client.print変数を挿入する
double variable;
client.println("<head> <meta http-equiv='refresh' content='1; url=http://localhost/add.php?param="+ variable +" /></head>");
私のエラー
blink1:57: error: invalid operands of types 'const char [97]' and 'double' to binary 'operator+'
client.println("<head> <meta http-equiv='refresh' content='1; url=http://localhost/add.php?param="+ variable +"' /></head>");
[複数の変数を文字列で印刷する方法](https://arduino.stackexchange.com/questions/176/how-do-i-print-multiple-variables-in-a-string) –