質問編集履歴
1
該当エラーソースコードを記載
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,7 +50,23 @@
|
|
50
50
|
|
51
51
|
###該当のソースコード
|
52
52
|
|
53
|
+
Arduinoに送信するコード(C#)
|
53
54
|
|
55
|
+
```ここに言語を入力
|
56
|
+
|
57
|
+
// 送信用値をMySQLから取得
|
58
|
+
|
59
|
+
temp = (double)dataDisplay.CurrentRow.Cells[1].Value; // 温度(変数宣言はしてあります。)
|
60
|
+
|
61
|
+
lux = (double)dataDisplay.CurrentRow.Cells[2].Value; // 照度(変数宣言はしてあります。)
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
// Arduinoシリアル送信
|
66
|
+
|
67
|
+
arduino_serialPort.Write(temp + "," + lux);
|
68
|
+
|
69
|
+
```
|
54
70
|
|
55
71
|
###試したこと
|
56
72
|
|