How to use the @canboat/canboatjs.discover function in @canboat/canboatjs

To help you get started, we’ve selected a few @canboat/canboatjs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SignalK / signalk-server-node / src / discovery.js View on Github external
module.exports.runDiscovery = function(app) {
  if (canboatjs.discover) {
    try {
      canboatjs.discover(app)
    } catch (ex) {
      console.log(ex)
    }
  }

  discoverWLN10()
  discoverGoFree()

  function findUDPProvider(port) {
    return app.config.settings.pipedProviders.find(provider => {
      return (
        provider.pipeElements &&
        provider.pipeElements.length === 1 &&
        provider.pipeElements[0].type === 'providers/simple' &&
        provider.pipeElements[0].options &&
        provider.pipeElements[0].options.type === 'NMEA0183' &&

@canboat/canboatjs

Native javascript version of canboat

Apache-2.0
Latest version published 2 days ago

Package Health Score

72 / 100
Full package analysis