File tree 4 files changed +21
-4
lines changed
4 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 4
4
# arduino-create-agent-js-client
5
5
JS module providing discovery of the [ Arduino Create Agent] ( https://github.com/arduino/arduino-create-agent ) and communication with it
6
6
7
+
7
8
## Changelog
8
- [ 2.9.0] - 2022-06-06
9
+ [ 2.9.1-alpha.2] - 2022-08-17
10
+
11
+ ### Changed
12
+ - The error ` No device found ` coming from the ` arduino-create-agent ` is now treated as an error.
13
+
14
+ ## Changelog
15
+ [ 2.9.1-alpha.1] - 2022-07-28
16
+
17
+ ### Added
18
+ - Added support for ESP boards (experimental)
9
19
20
+ ## Changelog
21
+ [ 2.9.0] - 2022-06-06
10
22
### Added
11
23
- Added support for "Arduino RP2040 Connect" board
12
24
### Changed
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " arduino-create-agent-js-client" ,
3
- "version" : " 2.9.0 " ,
3
+ "version" : " 2.9.1-alpha.2 " ,
4
4
"description" : " JS module providing discovery of the Arduino Create Plugin and communication with it" ,
5
5
"main" : " lib/index.js" ,
6
6
"module" : " es/index.js" ,
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ export default class Daemon {
130
130
} )
131
131
. then ( result => result . json ( ) )
132
132
. then ( uploadCommandInfo => {
133
- const projectNameIndex = uploadCommandInfo . commandline . indexOf ( '{build.project_name}' ) ;
133
+ const projectNameIndex = uploadCommandInfo . commandline . lastIndexOf ( '{build.project_name}' ) ;
134
134
let ext = uploadCommandInfo . commandline . substring ( projectNameIndex + 21 , projectNameIndex + 24 ) ;
135
135
const data = compilationResult [ ext ] || compilationResult . bin ;
136
136
if ( ! ext || ! data ) {
Original file line number Diff line number Diff line change @@ -392,7 +392,12 @@ export default class SocketDaemon extends Daemon {
392
392
this . uploading . next ( { status : this . UPLOAD_IN_PROGRESS , msg : `Programming with: ${ message . Cmd } ` } ) ;
393
393
break ;
394
394
case 'Busy' :
395
- this . uploading . next ( { status : this . UPLOAD_IN_PROGRESS , msg : message . Msg } ) ;
395
+ if ( message . Msg && message . Msg . indexOf ( 'No device found' ) === 0 ) {
396
+ this . uploading . next ( { status : this . UPLOAD_ERROR , err : message . Msg } ) ;
397
+ }
398
+ else {
399
+ this . uploading . next ( { status : this . UPLOAD_IN_PROGRESS , msg : message . Msg } ) ;
400
+ }
396
401
break ;
397
402
case 'Error' :
398
403
this . uploading . next ( { status : this . UPLOAD_ERROR , err : message . Msg } ) ;
You can’t perform that action at this time.
0 commit comments