From 63f1addeea6403ba3445b980ed2e5dfd606485d3 Mon Sep 17 00:00:00 2001 From: vdutta Date: Mon, 20 Jun 2022 19:13:42 +0530 Subject: [PATCH] obuspa: Added option to verify the mqtt received topic --- obuspa/Config.in | 4 ++++ obuspa/Makefile | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/obuspa/Config.in b/obuspa/Config.in index 29fdce292..9b569f05e 100644 --- a/obuspa/Config.in +++ b/obuspa/Config.in @@ -21,5 +21,9 @@ config OBUSPA_MTP_ENABLE_STOMP config OBUSPA_MTP_ENABLE_COAP bool "Enable CoAP as mtp protocol" default n + +config OBUSPA_CONTROLLER_MTP_VERIFY + bool "Enable verification of MQTT response topic before processing the message" + default n endmenu endif diff --git a/obuspa/Makefile b/obuspa/Makefile index 68b73c73a..49168c8c5 100644 --- a/obuspa/Makefile +++ b/obuspa/Makefile @@ -5,12 +5,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=obuspa -PKG_VERSION:=5.0.0.13 +PKG_VERSION:=5.0.0.14 LOCAL_DEV:=0 ifneq ($(LOCAL_DEV),1) PKG_SOURCE_PROTO:=git -PKG_SOURCE_VERSION:=79f1a60fcb7f140a834b0b6a36a1cd95df4ed73b +PKG_SOURCE_VERSION:=cd47bcaf1cc82dfd5c10ea76491fd0dae4436cc6 PKG_SOURCE_URL:=https://dev.iopsys.eu/fork/obuspa.git PKG_MAINTAINER:=Vivek Dutta PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz @@ -47,6 +47,10 @@ TARGET_CFLAGS += \ -Wall \ -Werror +ifneq ($(CONFIG_OBUSPA_CONTROLLER_MTP_VERIFY),) + TARGET_CFLAGS += -DOBUSPA_CONTROLLER_MTP_VERIFY +endif + ifneq ($(CONFIG_OBUSPA_DB_PATH),) CONFIGURE_ARGS += \ --localstatedir="$(CONFIG_OBUSPA_DB_PATH)"