UNPKG

sim800

Version:

A modern and opiniated module for SIM800 GSM modems ( SIM800 / SIM800L ).

17 lines 646 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CmgsCommand = void 0; const sim800_command_type_enum_1 = require("../interfaces/sim800-command-type.enum"); const sim800_command_1 = require("./sim800-command"); class CmgsCommand extends sim800_command_1.Sim800Command { constructor(length) { super({ command: sim800_command_type_enum_1.Sim800CommandType.ATCMGS, arg: String(length), completeWhen: (data) => data.startsWith('AT+CMGS'), errorWhen: 'ERROR', }); } } exports.CmgsCommand = CmgsCommand; //# sourceMappingURL=cmgs-command.js.map