49 lines
1.2 KiB
C
Executable File
49 lines
1.2 KiB
C
Executable File
//
|
|
// Created by xemon on 10.05.23.
|
|
//
|
|
|
|
#ifndef ATGSMSIMCOMA7600_SOCKETSENDDATA_H
|
|
#define ATGSMSIMCOMA7600_SOCKETSENDDATA_H
|
|
|
|
#include "AtCmdCommon.h"
|
|
|
|
AtCommandResult AtGsmTelitLe910_SocketSendData(
|
|
tAtCmd *env, uint8_t linkNum, uint8_t *data, uint16_t dataLen, uint32_t timeout
|
|
);
|
|
|
|
|
|
AtCommandResult AtGsmTelitLe910_SocketSendDataUdp(
|
|
tAtCmd *env,
|
|
uint8_t linkNum,
|
|
uint8_t *data,
|
|
uint16_t dataLen,
|
|
char *srvIp,
|
|
uint8_t srvIpLen,
|
|
uint16_t srvPort,
|
|
uint32_t timeout
|
|
);
|
|
|
|
#define AtGsmTelitLe910_SocketSendDataStatic(ENV, LNK, STR, TOUT) AtGsmSimComA7600_SocketSendData(ENV,LNK,(uint8_t*)STR,sizeof(STR)-1,TOUT)
|
|
|
|
/*
|
|
AtCommandResult AtGsmSimComA7600_SocketSendData(
|
|
tAtCmd *env, uint8_t linkNum, uint8_t *data, uint16_t dataLen, uint32_t timeout
|
|
);
|
|
|
|
|
|
AtCommandResult AtGsmSimComA7600_SocketSendDataUdp(
|
|
tAtCmd *env,
|
|
uint8_t linkNum,
|
|
uint8_t *data,
|
|
uint16_t dataLen,
|
|
char *srvIp,
|
|
uint8_t srvIpLen,
|
|
uint16_t srvPort,
|
|
uint32_t timeout
|
|
);
|
|
|
|
#define AtGsmSimComA7600_SocketSendDataStatic(ENV, LNK, STR, TOUT) AtGsmSimComA7600_SocketSendData(ENV,LNK,(uint8_t*)STR,sizeof(STR)-1,TOUT)
|
|
*/
|
|
|
|
#endif //ATGSMSIMCOMA7600_DEFINEPDPCONTEXT_H
|