mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
Show MockBinding.reset() in examples
This commit is contained in:
parent
4fc1404c8c
commit
c65bfc310e
1 changed files with 3 additions and 0 deletions
|
|
@ -40,3 +40,6 @@ port.on('open', () => {
|
|||
// To pretend to receive data (only works on open ports)
|
||||
port.binding.emitData(Buffer.from('Hi from my test!'));
|
||||
});
|
||||
|
||||
// When you're done you can destroy all ports with
|
||||
MockBinding.reset();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue