1.0.2 • Published 1 year ago

@jmkristian/node-vara v1.0.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

node-vara

Communicate via radio in the style of node Net, using a VARA FM or HF modem.

const VARA = require('@jmkristian/node-vara');
const Bunyan = require('bunyan');

var server = new VARA.Server ({
        host: 'vara-fm-server-host', // default: localhost
        port: 8300, // default: 8300
        dataPort: 8301, // default: port + 1
        logger: Bunyan.createLogger({name: 'VARA'}), /* default: no logging
            An object compatible with the Bunyan logger interface, or null. */
    },
    function onConnection(connection) {
        console.log('connection'
                    + ' from ' + connection.remoteAddress
                    + ' to ' + connection.localAddress);
        connection.write(...); // transmit data
        connection.pipe(...); // receive data
    });

server.listen({
        host: ['A1CALL-1', 'B2CALL-10']  // This server's call signs.
    },
    function onListening(info) { // called when the server begins listening
        console.log('VARA listening %o', info);
    });
1.0.2

1 year ago

1.0.1

1 year ago

0.1.0

1 year ago