UNPKG

sim800

Version:

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

19 lines 764 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CmglCommand = void 0; const sim800_command_enums_1 = require("../interfaces/sim800-command.enums"); const sim800_command_type_enum_1 = require("../interfaces/sim800-command-type.enum"); const sim800_command_1 = require("./sim800-command"); class CmglCommand extends sim800_command_1.Sim800Command { constructor(stat = sim800_command_enums_1.CmglStat.All) { super({ command: sim800_command_type_enum_1.Sim800CommandType.ATCMGL, arg: String(stat), expectedData: ['+CMGL:'], completeWhen: 'OK', errorWhen: 'ERROR', }); } } exports.CmglCommand = CmglCommand; //# sourceMappingURL=cmgl-command.js.map