This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

modemtalk

2.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i modemtalk

Weekly Downloads

7

Version

2.0.2

License

BSD-4-Clause

Unpacked Size

77.5 kB

Total Files

33

Last publish

Collaborators

  • bencefr
  • coderbyheart
  • nordicsemi