Skip to content

Commit a2179c4

Browse files
author
Lauren McCarthy
authored
Merge pull request #465 from jywarren/patch-3
(wip) Added ability to send data back to the Arduino
2 parents ce612f7 + 8ee2e52 commit a2179c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/data/examples/en/10_Interaction/28_ArduinoSensor.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function setup() {
2424
receiveSensorData(handleData);
2525
}
2626

27-
function handleData(data) {
27+
function handleData(data, connection) {
2828

2929
console.log(data); // output the values to log
3030
// data[0] is the 1st value, data[1] 2nd, etc.
@@ -33,4 +33,5 @@ function handleData(data) {
3333
background('#ddd');
3434
ellipse(100, 200, data[0]+10, data[0]+10);
3535

36+
// connection.send('send data back to the Arduino if its listening');
3637
}

0 commit comments

Comments
 (0)