2.0.2 • Published 2 years ago

modemtalk v2.0.2

Weekly downloads
6
License
BSD-4-Clause
Repository
github
Last release
2 years ago

Modemtalk

npm version GitHub Actions Greenkeeper badge semantic-release Commitizen friendly code style: standard

Library to interface with the nRF9160 modem.

This is a stand-alone publication of the modemtalk folder from https://github.com/NordicSemiconductor/pc-nrfconnect-linkmonitor/.

Usage

Install it as a dependency in your project:

npm i --save modemtalk

Then use ModemPort to communicate with the device:

const { ModemPort } = require('modemtalk')

const turnOffModem = async () => {
  const device = new ModemPort('/dev/ttyACM0', {
    writeCallback: data => {
      console.log(data.trim())
    }
  })

  await device.open()

  await device.writeAT('+CFUN=4', {
    timeout: 2000
  })

  await device.close()
}

turnOffModem()

More examples

2.0.2

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.5-pre.1

5 years ago