leds/index.js

12 lines
183 B
JavaScript

import * as server from './server.js';
console.log(server)
server.recv(
(res) => {
console.log(`callback: ${res}`);
},
(res) => {
console.log(`error callback: ${res}`);
}
);