Sorry for the delay here - @mgg1010 has it sorted... There's no need for a connect function - it just makes sense when you're talking about hardware.
connect
You could change the name so it's new require("Date").Date - I don't know what people normally tend to do for node.js modules?
new require("Date").Date
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Sorry for the delay here - @mgg1010 has it sorted... There's no need for a
connect
function - it just makes sense when you're talking about hardware.You could change the name so it's
new require("Date").Date
- I don't know what people normally tend to do for node.js modules?