Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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' &&