48 lines
1.5 KiB
C
Executable File
48 lines
1.5 KiB
C
Executable File
//
|
|
// Created by xemon on 10.05.23.
|
|
//
|
|
|
|
#ifndef ATGSMSIMCOMA7600_ESTEBLISHCONNECTION_H
|
|
#define ATGSMSIMCOMA7600_ESTEBLISHCONNECTION_H
|
|
|
|
#include "AtCmdCommon.h"
|
|
|
|
typedef enum {
|
|
eAtGsmSimComA7600_IpType_TCP,
|
|
eAtGsmSimComA7600_IpType_UDP,
|
|
} eAtGsmSimComA7600_IpType;
|
|
|
|
|
|
//AtCommandResult AtGsmSimComA7600_EstablishConnection(
|
|
// tAtCmd *env,
|
|
// uint8_t linkNum,
|
|
// eAtGsmSimComA7600_IpType type,
|
|
// char *srvIp,
|
|
// uint8_t srvIpLen,
|
|
// uint16_t srvPort,
|
|
// uint16_t localPort
|
|
//);
|
|
|
|
AtCommandResult AtGsmTelitLe910_EstablishConnection(
|
|
tAtCmd *env,
|
|
uint8_t linkNum,
|
|
eAtGsmSimComA7600_IpType type,
|
|
char *srvIp,
|
|
uint8_t srvIpLen,
|
|
uint16_t srvPort,
|
|
uint16_t localPort
|
|
);
|
|
|
|
//#define AtGsmSimComA7600_EstablishTcpConnStatic(ENV, LNK, SRV, PORT) AtGsmSimComA7600_EstablishConnection(ENV,LNK,eAtGsmSimComA7600_IpType_TCP,SRV,sizeof(SRV)-1,PORT,0)
|
|
|
|
#define AtGsmSimComA7600_EstablishTcpConnStatic(ENV, LNK, SRV, PORT) AtGsmTelitLe910_EstablishConnection(ENV,LNK,eAtGsmSimComA7600_IpType_TCP,SRV,sizeof(SRV)-1,PORT,0)
|
|
|
|
//AtCommandResult AtGsmSimComA7600_HasConnection(tAtCmd *env, uint8_t linkNum, bool *status);
|
|
AtCommandResult AtGsmTelitLe910_HasConnection(tAtCmd *env, uint8_t linkNum, bool *status);
|
|
|
|
|
|
AtCommandResult AtGsmTelitLe910_CloseConnection(tAtCmd *env, uint8_t linkNum);
|
|
//AtCommandResult AtGsmSimComA7600_CloseConnection(tAtCmd *env, uint8_t linkNum);
|
|
|
|
#endif //ATGSMSIMCOMA7600_ESTEBLISHCONNECTION_H
|