Skip to content

Commit 1aafcfc

Browse files
committed
Update README.md
1 parent fc4a166 commit 1aafcfc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ vantjs is a platform-independent javascript and typescript interface to the Davi
66
#### Development news
77

88
_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._
1010

1111
**Upcoming stuff**:
1212

@@ -30,6 +30,11 @@ import { VantInterface, inspect } from "vantjs";
3030
// Create a new interface
3131
const device = new VantInterface("COM3");
3232

33+
// Handle errors properly
34+
device.on("error", (err: Error) => {
35+
console.error("An error occurred!");
36+
});
37+
3338
// Wake up the console and interact with it when it's ready
3439
device.ready(async () => {
3540
console.log("Connected to device!");

0 commit comments

Comments
 (0)