obuspa: align with bbfdm

This commit is contained in:
Vivek Kumar Dutta 2024-12-05 16:19:21 +05:30
parent c6e8454989
commit e0bf63926a
2 changed files with 26 additions and 1 deletions

View file

@ -5,7 +5,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=obuspa
PKG_VERSION:=9.0.0.18
PKG_VERSION:=9.0.0.19
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)
@ -128,6 +128,7 @@ define Package/obuspa/install
$(INSTALL_BIN) ./files/etc/firewall.usp $(1)/etc/
$(INSTALL_BIN) ./files/etc/udhcpc.user.d/udhcpc_obuspa_opt125.user $(1)/etc/udhcpc.user.d/udhcpc_obuspa_opt125.user
ifeq ($(CONFIG_OBUSPA_CWMP_DATAMODEL_SUPPORT),y)
$(BBFDM_REGISTER_SERVICES) ./bbfdm_service.json $(1) $(PKG_NAME)
$(BBFDM_INSTALL_MS_DM) $(PKG_BUILD_DIR)/libuspagentdm.so $(1) $(PKG_NAME)
endif
ifeq ($(CONFIG_OBUSPA_ENABLE_TEST_CONTROLLER),y)

24
obuspa/bbfdm_service.json Normal file
View file

@ -0,0 +1,24 @@
{
"daemon": {
"enable": "1",
"service_name": "obuspa",
"unified_daemon": false,
"services": [
{
"parent_dm": "Device.",
"object": "USPAgent"
},
{
"parent_dm": "Device.",
"object": "MQTT"
},
{
"parent_dm": "Device.",
"object": "STOMP"
}
],
"config": {
"loglevel": "3"
}
}
}