I’m using QuecOpen on BG95 and BG96.
If I do this example code after I successfully call qapi_QT_Apps_AT_Port_Open()
void BWModemModule_ExampleFunction(void)
{
tx_byte_allocate(pBytePool,
(VOID *)&commandString, BWMODEM_CMD_MAX_SIZE,
TX_NO_WAIT);
snprintf(commandString, BWMODEM_CMD_MAX_SIZE, … );
qapi_QT_Apps_Send_AT(streamId, commandString);
}
When can my BWModemModule class free the memory allocated by tx_byte_allocate?
- After qapi_QT_Apps_Send_AT returns?
- only after ATC pipe callback is called? I don’t t think #2 is right because one can get a callback showing an asynchronous urc message, before commandString is sent!!!