first commit

This commit is contained in:
s.golasch
2023-08-01 14:21:39 +02:00
commit a2cc0ee158
5 changed files with 135 additions and 0 deletions

7
hello.js Normal file
View File

@@ -0,0 +1,7 @@
!(async function main () {
const coordinator = new NetworkConnection({ port: 9000, host: '192.168.178.95' })
await coordinator.connect()
const [message, crc, fullMessage] = await coordinator.sendCommand(Buffer.from('fd00030001009e03', 'hex'))
console.log([message, crc, fullMessage])
coordinator.__emitter.on('event', console.log.bind(console))
}())