obuspa: uci option to configure mqtt RequestResponseInfo

This commit is contained in:
Vivek Kumar Dutta 2025-05-25 21:45:02 +05:30
parent c68b1c01eb
commit 99821b5010
No known key found for this signature in database
GPG key ID: 4E09F5AD8265FD4C
2 changed files with 5 additions and 3 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=obuspa PKG_NAME:=obuspa
PKG_VERSION:=10.0.0.8 PKG_VERSION:=10.0.0.9
LOCAL_DEV:=0 LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1) ifneq ($(LOCAL_DEV),1)

View file

@ -241,7 +241,8 @@ validate_mqtt_client_section()
'Password:string' \ 'Password:string' \
'ProtocolVersion:or("3.1", "3.1.1","5.0"):5.0' \ 'ProtocolVersion:or("3.1", "3.1.1","5.0"):5.0' \
'TransportProtocol:or("TCP/IP","TLS"):TCP/IP' \ 'TransportProtocol:or("TCP/IP","TLS"):TCP/IP' \
'ClientID:string' 'ClientID:string' \
'RequestResponseInfo:bool:1'
} }
validate_challenge_section() validate_challenge_section()
@ -602,7 +603,7 @@ configure_stomp_connection() {
configure_mqtt_client() { configure_mqtt_client() {
local BrokerAddress BrokerPort Enable Username Password ProtocolVersion local BrokerAddress BrokerPort Enable Username Password ProtocolVersion
local TransportProtocol ClientID local TransportProtocol ClientID RequestResponseInfo
local sec local sec
sec="${1}" sec="${1}"
@ -627,6 +628,7 @@ configure_mqtt_client() {
db_set "${BASEPATH}.ProtocolVersion" "${ProtocolVersion}" db_set "${BASEPATH}.ProtocolVersion" "${ProtocolVersion}"
db_set "${BASEPATH}.TransportProtocol" "${TransportProtocol}" db_set "${BASEPATH}.TransportProtocol" "${TransportProtocol}"
db_set "${BASEPATH}.ClientID" "${ClientID}" db_set "${BASEPATH}.ClientID" "${ClientID}"
db_set "${BASEPATH}.RequestResponseInfo" "${RequestResponseInfo}"
} }