sim800
Version:
A modern and opiniated module for SIM800 GSM modems ( SIM800 / SIM800L ).
15 lines (13 loc) • 412 B
text/typescript
import { CmgfMode } from 'interfaces/sim800-command.enums';
import { Sim800CommandType } from '../interfaces/sim800-command-type.enum';
import { Sim800Command } from './sim800-command';
export class CmgfCommand extends Sim800Command {
constructor(cmgfMode: CmgfMode) {
super({
command: Sim800CommandType.ATCMGF,
arg: cmgfMode,
completeWhen: 'OK',
errorWhen: 'ERROR',
});
}
}