UNPKG

sim800

Version:

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

18 lines 675 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CregStatusCommand = void 0; const sim800_command_type_enum_1 = require("../interfaces/sim800-command-type.enum"); const sim800_command_1 = require("./sim800-command"); class CregStatusCommand extends sim800_command_1.Sim800Command { constructor() { super({ command: sim800_command_type_enum_1.Sim800CommandType.CREG, completeWhen: (data) => { return data.startsWith('+CREG:'); }, errorWhen: 'ERROR', }); } } exports.CregStatusCommand = CregStatusCommand; //# sourceMappingURL=creg-status-command.js.map