static voidset_package_section_test(){struct uci_package*p=NULL;// 定义package结构体struct uci_section*s=NULL;// 定义section结构体int ret=0;struct uci_context*ctx=uci_alloc_context();// 申请上下文if(!ctx){fprintf(stderr,"Failed to allocate UCI context\n");return;}if(uci_load(ctx,"pac...
sprintf(p,"%s",package_char); //配置文件名 sprintf(s,"%s",section_char); //wlan0 sprintf(o,"%s",roam_conf_name); //option 对应的名称如:basicnetwork_name sprintf(c,"%s",roam_conf_value);//value值: siot struct uci_ptr ptr ={ .package= p, .section= s, .option = o, .value ...
SECTION:=utils CATEGORY:=Utilities TITLE:=serial to tcp DEPENDS:=+libuci +libpthread endef define Package/ttl_client/description A client of tcp to serialorserial to tcp endef define Build/Prepare mkdir -p $(PKG_BUILD_DIR) $(CP) ./src/* $(PKG_BUILD_DIR)/endef define Build/Configure en...
# include $(TOPDIR)/rules.mk include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=ttl_client PKG_RELEASE:=1 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) include $(INCLUDE_DIR)/package.mk define Package/ttl_client SECTION:=utils CATEGORY:=Utilities TITLE:=serial to tcp DEPENDS:=+libuci +lib...
static voidset_package_section_test(){struct uci_package*p=NULL;// 定义package结构体struct uci_section*s=NULL;// 定义section结构体int ret=0;struct uci_context*ctx=uci_alloc_context();// 申请上下文if(!ctx){fprintf(stderr,"Failed to allocate UCI context\n");return;}if(uci_load(ctx,"pac...