1.1.1 • Published 10 months ago

ntrip-client v1.1.1

Weekly downloads
13
License
ISC
Repository
github
Last release
10 months ago

ntrip-client

The client for get rtcm data from ntripcaster.

Get source tables

Set mountpoint to empty string

const { NtripClient } = require('ntrip-client');

const options = {
  host: 'rtk2go.com',
  port: 2101,
  mountpoint: '',
  username: 'test@test.com',
  password: 'test'
};

const client = new NtripClient(options);

client.on('data', (data) => {
  console.log(data);
});

client.on('close', () => {
  console.log('client close');
});

client.on('error', (err) => {
  console.log(err);
});

client.run();

Get rtcm stream

const { NtripClient } = require('ntrip-client');

const options = {
  host: 'rtk2go.com',
  port: 2101,
  mountpoint: 'ACACU',
  username: 'test@test.com',
  password: 'test',
  xyz: [-1983430.2365, -4937492.4088, 3505683.7925],
  // the interval of send nmea, unit is millisecond
  interval: 2000,
};

const client = new NtripClient(options);

client.on('data', (data) => {
  console.log(data);
});

client.on('close', () => {
  console.log('client close');
});

client.on('error', (err) => {
  console.log(err);
});

client.run();
1.1.1

10 months ago

1.1.0

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago