export function reply (packet) { let addresses = (radix=16) => { return packet.response.map(device => { return device.toString(radix)}) } // console.log(packet) console.log('==== device decimal addreses on i2cbus ===\n',addresses(10)) console.log('==== device hex addreses on i2cbus ===\n',addresses()) } export async function test () { console.log('=============sending scan request ============') let packet = {cmd:'scan'} console.dir(packet) await this.send(packet) }