引入mqtt 引入cjson
This commit is contained in:
1 parent
a69c1a58d6
commit
f8591b8b99
86 files changed
+12141
-2157
No files matched your search
+8
-1
@@ -12,13 +12,14 @@
|
||||
#include <rtthread.h>
|
||||
|
||||
#include "main.h"
|
||||
#include "data.h"
|
||||
|
||||
#if defined(RT_USING_USER_MAIN) && defined(RT_USING_HEAP)
|
||||
/*
|
||||
* Please modify RT_HEAP_SIZE if you enable RT_USING_HEAP
|
||||
* the RT_HEAP_SIZE max value = (sram size - ZI size), 1024 means 1024 bytes
|
||||
*/
|
||||
#define RT_HEAP_SIZE (15*1024)
|
||||
#define RT_HEAP_SIZE (30*1024)
|
||||
static rt_uint8_t rt_heap[RT_HEAP_SIZE];
|
||||
|
||||
RT_WEAK void *rt_heap_begin_get(void)
|
||||
@@ -93,6 +94,11 @@ INIT_BOARD_EXPORT(uart_init);
|
||||
|
||||
void rt_hw_console_output(const char *str)
|
||||
{
|
||||
|
||||
if (g_ifconfig == 1)
|
||||
{
|
||||
return ;
|
||||
}
|
||||
rt_size_t i = 0, size = 0;
|
||||
char a = '\r';
|
||||
|
||||
@@ -108,6 +114,7 @@ void rt_hw_console_output(const char *str)
|
||||
}
|
||||
HAL_UART_Transmit(&UartHandle, (uint8_t *)(str + i), 1, 1);
|
||||
}
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user