|
|
@ -10,7 +10,7 @@ using namespace iflytop; |
|
|
|
using namespace smtp2; |
|
|
|
#define TAG "SMTP2"
|
|
|
|
|
|
|
|
#define OVERTIME 30
|
|
|
|
#define OVERTIME 100
|
|
|
|
#define DUMP_HEX 1
|
|
|
|
|
|
|
|
void SMTP2V2::initialize(UART_HandleTypeDef* uart, uint8_t id, DMA_HandleTypeDef* hdma_rx, DMA_HandleTypeDef* hdma_tx) { |
|
|
@ -25,7 +25,8 @@ void SMTP2V2::pump_ping() {} |
|
|
|
|
|
|
|
bool SMTP2V2::write_cmd(const char* cmd) { return sendcmd(cmd); } |
|
|
|
void SMTP2V2::getack(char* rx, int32_t* rxbufsize) { |
|
|
|
*rxbufsize = m_rxNum; |
|
|
|
*rxbufsize = m_rxNum + 1; |
|
|
|
rxbufsize[m_rxNum] = 0; |
|
|
|
memcpy(rx, m_rxbuf, m_rxNum); |
|
|
|
} |
|
|
|
/***********************************************************************************************************************
|
|
|
|