Skip to content

Commit 1afcf0e

Browse files
author
Stefania
committed
updated Readme, Fixes #27
1 parent 1d945b2 commit 1afcf0e

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ daemon.error.subscribe(err => {
2929
});
3030

3131
// List available devices (serial/network)
32-
daemon.devicesList.subscribe(devices => {
33-
const serialDevices = devices.serial;
34-
const networkDevices = devices.network;
32+
daemon.devicesList.subscribe(({serial, network}) => {
33+
const serialDevices = serial;
34+
const networkDevices = network;
3535
});
3636

3737
// Open serial monitor
@@ -65,6 +65,9 @@ daemon.downloading.subscribe(download => {
6565
});
6666

6767
```
68+
## Configure device for Arduino IoT
69+
Call functions in [board-configuration.js](https://github.com/arduino/arduino-create-agent-js-client/blob/master/src/board-configuration.js)
70+
6871
## Development and test features
6972
Just run `npm run dev` and open your browser on http://localhost:8000
7073

test/app.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ class App extends React.Component {
109109

110110
daemon.error.subscribe(this.showError);
111111

112-
daemon.devicesList.subscribe(devices => this.setState({
113-
serialDevices: devices.serial,
114-
networkDevices: devices.network
112+
daemon.devicesList.subscribe(({ serial, network }) => this.setState({
113+
serialDevices: serial,
114+
networkDevices: network
115115
}));
116116

117117
daemon.supportedBoards.subscribe(boards => this.setState({

0 commit comments

Comments
 (0)