Fix sample compilation errors.

This commit is contained in:
roger.luo 2023-03-15 23:49:27 +08:00
parent 7cad235d05
commit 0c389b6ce0
2 changed files with 4 additions and 1 deletions

View File

@ -133,10 +133,12 @@ static void sample_show_memory(void)
*/
static void sample_singlline(void)
{
at_attr_t attr;
at_attr_deinit(&attr);
// => AT+CSQ
// <= +CSQ:<rssi>,<ber>
// <= OK
at_send_singlline(at_obj, NULL, 200, 1, "AT+CSQ");
at_send_singlline(at_obj, &attr, "AT+CSQ");
}
/**

View File

@ -7,6 +7,7 @@
*/
#include <stddef.h>
#include <stdlib.h>
#include <sys/time.h>
/**
* @brief Custom malloc for AT component.