UNPKG

modemjs

Version:

NPM package to simplify sending and receiving SMS with a GSM Modem on Node.js

12 lines (11 loc) 790 B
export interface ModemConfig { port: string /** Modem's serialport (example COM1 or dev/ttys0) */; baudRate: number /** Modem serialport baudrate */; pin?: number | null /** not implemented yet */; smsMode?: boolean /** not implemented yet (true = text; false = pdu) */; extendedErrorReports?: boolean /** not implemented yet */; debugMode?: boolean /** logs every message from modem for debugging / developping purposes */; initCommands: string[] /** AT commands to configure modem before starting */; msPause: number /** number of mili-seconds that program should wait before sending SMS to avoid losing status reports of earlier SMS's */; autoOpen?: boolean /** defines if modem port should be open automatically on class declaration */; }