File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ daemon.error.subscribe(err => {
29
29
});
30
30
31
31
// 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;
35
35
});
36
36
37
37
// Open serial monitor
@@ -65,6 +65,9 @@ daemon.downloading.subscribe(download => {
65
65
});
66
66
67
67
```
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
+
68
71
## Development and test features
69
72
Just run ` npm run dev ` and open your browser on http://localhost:8000
70
73
Original file line number Diff line number Diff line change @@ -109,9 +109,9 @@ class App extends React.Component {
109
109
110
110
daemon . error . subscribe ( this . showError ) ;
111
111
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
115
115
} ) ) ;
116
116
117
117
daemon . supportedBoards . subscribe ( boards => this . setState ( {
You can’t perform that action at this time.
0 commit comments