first commit
This commit is contained in:
7
hello.js
Normal file
7
hello.js
Normal 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))
|
||||
}())
|
||||
Reference in New Issue
Block a user