File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ vantjs is a platform-independent javascript and typescript interface to the Davi
6
6
#### Development news
7
7
8
8
❌ _ Development still in progress. Some features are not stable._ <br >
9
- ⏩ _ Version 0.2 .0 has just been released offering a lot of functionality to interact with your Vantage Pro, Pro 2 and Vue._
9
+ ⏩ _ Version 0.3 .0 has just been released offering a lot of functionality to interact with your Vantage Pro, Pro 2 and Vue._
10
10
11
11
** Upcoming stuff** :
12
12
@@ -30,6 +30,11 @@ import { VantInterface, inspect } from "vantjs";
30
30
// Create a new interface
31
31
const device = new VantInterface (" COM3" );
32
32
33
+ // Handle errors properly
34
+ device .on (" error" , (err : Error ) => {
35
+ console .error (" An error occurred!" );
36
+ });
37
+
33
38
// Wake up the console and interact with it when it's ready
34
39
device .ready (async () => {
35
40
console .log (" Connected to device!" );
You can’t perform that action at this time.
0 commit comments