forked from xuos/xiuos
				
			mqtt update
This commit is contained in:
		
							parent
							
								
									7754a149a9
								
							
						
					
					
						commit
						455fd31c7f
					
				| 
						 | 
				
			
			@ -1,4 +1,5 @@
 | 
			
		|||
include $(KERNEL_ROOT)/.config
 | 
			
		||||
 | 
			
		||||
ifeq ($(CONFIG_ADD_NUTTX_FETURES),y)
 | 
			
		||||
    include $(APPDIR)/Make.defs
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -24,7 +25,7 @@ endif
 | 
			
		|||
 | 
			
		||||
ifeq ($(CONFIG_ADD_XIZI_FETURES),y)
 | 
			
		||||
    SRC_FILES := test_shell.c
 | 
			
		||||
 | 
			
		||||
    SRC_FILES += test_hash.c
 | 
			
		||||
    ifeq ($(CONFIG_USER_TEST_ADC),y)
 | 
			
		||||
        SRC_FILES += test_adc.c
 | 
			
		||||
    endif
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,7 +14,7 @@ ifeq ($(CONFIG_ADD_XIZI_FETURES),y)
 | 
			
		|||
	ifeq ($(CONFIG_RESOURCES_LWIP),y)
 | 
			
		||||
		SRC_DIR += socket_demo
 | 
			
		||||
	endif
 | 
			
		||||
 | 
			
		||||
	SRC_DIR +=mqtt_demo
 | 
			
		||||
    include $(KERNEL_ROOT)/compiler.mk
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1,12 @@
 | 
			
		|||
ifeq ($(CONFIG_ADD_XIZI_FETURES),y)
 | 
			
		||||
SRC_FILES := lwip_mqtt_demo.c
 | 
			
		||||
include $(KERNEL_ROOT)/compiler.mk
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
include $(KERNEL_ROOT)/.config
 | 
			
		||||
ifeq ($(CONFIG_ADD_NUTTX_FETURES),y)
 | 
			
		||||
    include $(APPDIR)/Make.defs
 | 
			
		||||
    CSRCS += lwip_mqtt_demo.c
 | 
			
		||||
    include $(APPDIR)/Application.mk
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1,3 +1,4 @@
 | 
			
		|||
SRC_FILES :=  cJSON.c
 | 
			
		||||
SRC_FILES +=  cJSON_Process.c
 | 
			
		||||
 | 
			
		||||
include $(KERNEL_ROOT)/compiler.mk
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -2,10 +2,14 @@ SRC_DIR += api
 | 
			
		|||
SRC_DIR += arch
 | 
			
		||||
SRC_DIR += core
 | 
			
		||||
SRC_DIR += netif
 | 
			
		||||
SRC_DIR += include
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
LWIP_DIR += api
 | 
			
		||||
LWIP_DIR += arch
 | 
			
		||||
LWIP_DIR += core
 | 
			
		||||
LWIP_DIR += netif
 | 
			
		||||
LWIP_DIR += include
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
include $(KERNEL_ROOT)/compiler.mk
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1,2 @@
 | 
			
		|||
 | 
			
		||||
include $(KERNEL_ROOT)/compiler.mk
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,6 @@
 | 
			
		|||
SRC_DIR += lwip
 | 
			
		||||
 | 
			
		||||
LWIP_DIR += lwip
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
include $(KERNEL_ROOT)/compiler.mk
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,6 @@
 | 
			
		|||
SRC_DIR += apps
 | 
			
		||||
 | 
			
		||||
LWIP_DIR += apps
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
include $(KERNEL_ROOT)/compiler.mk
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,13 @@
 | 
			
		|||
SRC_FILES += MQTTPacket.c\
 | 
			
		||||
			 MQTTConnectClient.c \
 | 
			
		||||
		     MQTTConnectServer.c \
 | 
			
		||||
			 MQTTDeserializePublish.c \
 | 
			
		||||
			 MQTTFormat.c \
 | 
			
		||||
			 MQTTSerializePublish.c \
 | 
			
		||||
			 MQTTSubscribeClient.c \
 | 
			
		||||
			 MQTTSubscribeServer.c \
 | 
			
		||||
			 MQTTUnsubscribeClient.c \
 | 
			
		||||
			 MQTTUnsubscribeServer.c \
 | 
			
		||||
			 transport.c
 | 
			
		||||
 | 
			
		||||
include $(KERNEL_ROOT)/compiler.mk
 | 
			
		||||
| 
						 | 
				
			
			@ -0,0 +1,6 @@
 | 
			
		|||
SRC_DIR += MQTT
 | 
			
		||||
 | 
			
		||||
LWIP_DIR += MQTT
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
include $(KERNEL_ROOT)/compiler.mk
 | 
			
		||||
		Loading…
	
		Reference in New Issue