forked from xuos/xiuos
move mqtt to APP_Framework/lib dir for ota
This commit is contained in:
parent
6559210341
commit
02089a48ee
|
@ -14,4 +14,5 @@ menu "app lib"
|
||||||
source "$APP_DIR/lib/lvgl/Kconfig"
|
source "$APP_DIR/lib/lvgl/Kconfig"
|
||||||
source "$APP_DIR/lib/embedded_database/Kconfig"
|
source "$APP_DIR/lib/embedded_database/Kconfig"
|
||||||
source "$APP_DIR/lib/lorawan/Kconfig"
|
source "$APP_DIR/lib/lorawan/Kconfig"
|
||||||
|
source "$APP_DIR/lib/mqtt/Kconfig"
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -18,4 +18,8 @@ ifeq ($(CONFIG_LIB_USING_LORAWAN),y)
|
||||||
SRC_DIR += lorawan
|
SRC_DIR += lorawan
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_TOOL_USING_MQTT),y)
|
||||||
|
SRC_DIR += mqtt
|
||||||
|
endif
|
||||||
|
|
||||||
include $(KERNEL_ROOT)/compiler.mk
|
include $(KERNEL_ROOT)/compiler.mk
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
menu "MQTT function"
|
menu "lib using MQTT"
|
||||||
|
|
||||||
menuconfig TOOL_USING_MQTT
|
menuconfig TOOL_USING_MQTT
|
||||||
bool "Enable support MQTT function"
|
bool "Enable support MQTT function"
|
|
@ -15,16 +15,14 @@
|
||||||
* @brief: platform_mqtt.c file
|
* @brief: platform_mqtt.c file
|
||||||
* @version: 1.0
|
* @version: 1.0
|
||||||
* @author: AIIT XUOS Lab
|
* @author: AIIT XUOS Lab
|
||||||
* @date: 2023/6/14
|
* @date: 2023/7/27
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <adapter.h>
|
#include <adapter.h>
|
||||||
#include "shell.h"
|
#include <transform.h>
|
||||||
#include "xsconfig.h"
|
|
||||||
#include <adapter.h>
|
|
||||||
#include "platform_mqtt.h"
|
#include "platform_mqtt.h"
|
||||||
|
|
||||||
MQTT_TCB Platform_mqtt; //创建一个用于连接云平台mqtt的结构体
|
MQTT_TCB Platform_mqtt; //创建一个用于连接云平台mqtt的结构体
|
|
@ -15,7 +15,7 @@
|
||||||
* @brief: platform_mqtt.h file
|
* @brief: platform_mqtt.h file
|
||||||
* @version: 1.0
|
* @version: 1.0
|
||||||
* @author: AIIT XUOS Lab
|
* @author: AIIT XUOS Lab
|
||||||
* @date: 2023/6/14
|
* @date: 2023/7/27
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
* @brief: utils_hmacsha1.c file
|
* @brief: utils_hmacsha1.c file
|
||||||
* @version: 1.0
|
* @version: 1.0
|
||||||
* @author: AIIT XUOS Lab
|
* @author: AIIT XUOS Lab
|
||||||
* @date: 2023/6/29
|
* @date: 2023/7/27
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
* @brief: utils_hmacsha1.h file
|
* @brief: utils_hmacsha1.h file
|
||||||
* @version: 1.0
|
* @version: 1.0
|
||||||
* @author: AIIT XUOS Lab
|
* @author: AIIT XUOS Lab
|
||||||
* @date: 2023/6/29
|
* @date: 2023/7/27
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -565,7 +565,7 @@ KERNELPATHS +=-I$(KERNEL_ROOT)/tool/bootloader/flash \
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_TOOL_USING_MQTT), y)
|
ifeq ($(CONFIG_TOOL_USING_MQTT), y)
|
||||||
KERNELPATHS +=-I$(KERNEL_ROOT)/tool/mqtt
|
KERNELPATHS +=-I$(KERNEL_ROOT)/../../APP_Framework/lib/mqtt
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_FS_LWEXT4),y)
|
ifeq ($(CONFIG_FS_LWEXT4),y)
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
menu "Tool feature"
|
menu "Tool feature"
|
||||||
|
|
||||||
source "$KERNEL_DIR/tool/bootloader/Kconfig"
|
source "$KERNEL_DIR/tool/bootloader/Kconfig"
|
||||||
source "$KERNEL_DIR/tool/mqtt/Kconfig"
|
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
|
@ -8,8 +8,4 @@ ifeq ($(CONFIG_TOOL_USING_OTA),y)
|
||||||
SRC_DIR += bootloader
|
SRC_DIR += bootloader
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_TOOL_USING_MQTT),y)
|
|
||||||
SRC_DIR += mqtt
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(KERNEL_ROOT)/compiler.mk
|
include $(KERNEL_ROOT)/compiler.mk
|
||||||
|
|
Loading…
Reference in New Issue