v0.3.0 Release
Pre-release
Pre-release
What's new?:
- Integration of error handling into the event system: Instead of passing an error handler callback function to the
device.ready
function you can handle errors by listening to theerror
event.
device.on("error", (err: Error) => {
console.error(err);
});
- The auto close option is now easily configurable: Instead of overwriting the "finally" callback function, you can (optionally) pass a boolean disabling/enabling the auto close feature. By default it's enabled.
device.ready(async () => {
...
}, false);
- First (unstable) draft of weather data containers: Weather data containers are self-updating objects representing the weather station's current state (including all sensors). It's a new level of abstraction. Accessing the current outside temperature is as easy as possible. You simply write
container.temperature.in
.