sim800
Version:
A modern and opiniated module for SIM800 GSM modems ( SIM800 / SIM800L ).
14 lines (12 loc) • 386 B
text/typescript
import { Sim800CommandType } from '../interfaces/sim800-command-type.enum';
import { Sim800Command } from './sim800-command';
export class CmgsCommand extends Sim800Command {
constructor(length: number) {
super({
command: Sim800CommandType.ATCMGS,
arg: String(length),
completeWhen: (data) => data.startsWith('AT+CMGS'),
errorWhen: 'ERROR',
});
}
}