Skip to content

Commit fb0b0cf

Browse files
author
Lauren McCarthy
committed
updating arduino sensor example to ES6
1 parent 9516d73 commit fb0b0cf

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ function setup() {
2222

2323
// Set up the WebJack connection.
2424
// Use default profile: https://github.com/publiclab/webjack/blob/master/src/profiles.js
25-
var profile = WebJack.Profiles["SoftModem"];
26-
var connection = new WebJack.Connection(profile);
25+
let profile = WebJack.Profiles["SoftModem"];
26+
let connection = new WebJack.Connection(profile);
2727

2828
// Runs every time a signal is 'heard'
2929
connection.listen(function(data) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ function setup() {
2222

2323
// Set up the WebJack connection.
2424
// Use default profile: https://github.com/publiclab/webjack/blob/master/src/profiles.js
25-
var profile = WebJack.Profiles["SoftModem"];
26-
var connection = new WebJack.Connection(profile);
25+
let profile = WebJack.Profiles["SoftModem"];
26+
let connection = new WebJack.Connection(profile);
2727

2828
// Runs every time a signal is 'heard'
2929
connection.listen(function(data) {

src/data/examples/zh-Hans/10_Interaction/28_ArduinoSensor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ function setup() {
2222

2323
// Set up the WebJack connection.
2424
// Use default profile: https://github.com/publiclab/webjack/blob/master/src/profiles.js
25-
var profile = WebJack.Profiles["SoftModem"];
26-
var connection = new WebJack.Connection(profile);
25+
let profile = WebJack.Profiles["SoftModem"];
26+
let connection = new WebJack.Connection(profile);
2727

2828
// Runs every time a signal is 'heard'
2929
connection.listen(function(data) {

0 commit comments

Comments
 (0)