19 lines
385 B
C
19 lines
385 B
C
//
|
|
// Created by xemon on 28.11.22.
|
|
//
|
|
|
|
#include "AtGsmSms_SendById.h"
|
|
#include "AtCmdCommonProtected.h"
|
|
|
|
AtCommandResult AtGsmSms_SendById(tAtCmd *env, uint8_t id) {
|
|
AtCmdPrepare(env);
|
|
|
|
AtCmdTxClear(env);
|
|
AtCmdTxAddStatic(env, "AT+CMSS=");
|
|
AtCmdTxAddDecimalIntWithLimit(env, id, 3);
|
|
|
|
AtCmdTxSendLn(env);
|
|
|
|
return AtCmdOkErrAnswer(env, env->stdRxTimeout * 6);
|
|
}
|