当前位置: 首页 > news >正文

用织梦做的网站好不好制作网页的软件有哪些

用织梦做的网站好不好,制作网页的软件有哪些,wordpress 回复给某人,网站建设主机分区 本文使用的是大彩串口屏M系列的: 串口屏内部有三个分区,分别为A、B、C三个区: A区:系统区,存储组态工程文件 B区:数据区,存储配置信息,记录数据、历史曲线等 C区:备…

分区

本文使用的是大彩串口屏M系列的:
串口屏内部有三个分区,分别为A、B、C三个区:
A区:系统区,存储组态工程文件
B区:数据区,存储配置信息,记录数据、历史曲线等
C区:备份区,备份数据区文件
在进行文件读写的时候,建议卸载B区,避免破坏A区、C区文件,B取文件读写需要注意以下两点:
·手动创建文件夹:在工程目录下创建“Public”文件夹,此文件夹表示B区,此后读写操作均在B区完成
在这里插入图片描述
分配空间大小:在工程属性-高级设置-存储分区B(Mbyte)中,需要分配大小大于0,一般默认即可。

路径

屏内文件读取

假设对屏内的test文件读写,路径如下所示

local file_path = ‘B:/test.txt’
SD卡/U盘路径读取

读写SD卡或U盘里的”test.txt“文件时,应巧妙利用LUA脚本SD卡、USB插入触发的回调函数里获取盘符,如下所示:

local file_path = ‘’function  on_usb_inserted(dir)file_path = dir..'/'..'test.txt'
endfunction  on_sd_inserted(dir)file_path = dir..'/'..'test.txt'
end

写文件:读写屏内文件

1.创建Public文件夹,并在该文件夹中创建config.txt文件
config.txt文件中的键值对要与代码中的键值匹配,否则会导致读取异常

2.编写LUA代码
具体代码如下:

local config_file_path = 'B:/config.txt'-- 配置项
local config_table		= {device_id = "test123456",verify_pwd = 123456,alert_stage_1sd_duration_s = 25, -- 第一阶段时长,人员警报秒速alert_stage_2nd_duration_s = 15, -- 第二阶段时长,关闭电磁阀秒数is_auto_open_gas_valve = false, --人员在场是否自动打开电磁阀is_reverse_open_gas_valve = false,--人员在场是否取反打开电磁阀is_maintain_open_gas_valve = false,--人员在场是否持续打开电磁阀alert_capture_duration_s = 10,report_url = "28.19.41.69:8601/MsgPoster",network_param = {dhcp = 0,ipaddr = "",netmask = "",gateway = "",dns = ""}
} -- 配置文件-- 将当前的配置参数保存起来
function save_config_table()local jsonStr = cjson.encode(config_table)set_text(1,33," ")	write_file(config_file_path, jsonStr)
end-- 加载配置文件
function load_config_table()local config1 = read_file(config_file_path)if config1 ~= nil thenlocal data1 = cjson.decode(config1)set_text(1,33," ")if data1 ~= nil thenconfig_table = data1set_text(1,32,"Success")returnendend-- 没有加载成功,将生成默认配制config_table = {device_id = "sfm123456",verify_pwd = 123456,alert_stage_1sd_duration_s = 25,alert_stage_2nd_duration_s = 15,alert_capture_duration_s = 12,is_auto_open_gas_valve = false,is_maintain_open_gas_valve = false,is_reverse_open_gas_valve = false,report_url = "28.19.41.69:8601/MsgPoster",network_param = {dhcp = 0,ipaddr = "",netmask = "",gateway = "",dns = ""}} -- 配置文件	set_text(1,32,"Error")
end---输入数据
---@param file_path string 路径
---@param info string 文件内容
function write_file(file_path, info)-- 以覆盖写入的方式打开文本local wfile = io.open(file_path, "w")if wfile ~= nil thenwfile:write(info)set_text(1,33," ")	endset_text(1,33," ")	wfile:close()flush_nor()
end

文章转载自:
http://quinquangular.hwbf.cn
http://zoochory.hwbf.cn
http://islander.hwbf.cn
http://microblade.hwbf.cn
http://goiterogenic.hwbf.cn
http://pectin.hwbf.cn
http://autologous.hwbf.cn
http://smuttily.hwbf.cn
http://wort.hwbf.cn
http://hijacker.hwbf.cn
http://glyph.hwbf.cn
http://antihistamine.hwbf.cn
http://anthropology.hwbf.cn
http://dumpishness.hwbf.cn
http://cordless.hwbf.cn
http://evictee.hwbf.cn
http://dribble.hwbf.cn
http://tasteful.hwbf.cn
http://dehumidizer.hwbf.cn
http://require.hwbf.cn
http://sideboard.hwbf.cn
http://culvert.hwbf.cn
http://arthrology.hwbf.cn
http://sahiwal.hwbf.cn
http://berline.hwbf.cn
http://freemartin.hwbf.cn
http://portwine.hwbf.cn
http://mockingly.hwbf.cn
http://undispersed.hwbf.cn
http://rocketeer.hwbf.cn
http://inconvenience.hwbf.cn
http://enclises.hwbf.cn
http://duologue.hwbf.cn
http://theocrat.hwbf.cn
http://odorless.hwbf.cn
http://preface.hwbf.cn
http://concinnate.hwbf.cn
http://gabfest.hwbf.cn
http://adumbration.hwbf.cn
http://patella.hwbf.cn
http://contrition.hwbf.cn
http://enchantment.hwbf.cn
http://riches.hwbf.cn
http://youngster.hwbf.cn
http://bondstone.hwbf.cn
http://sprucy.hwbf.cn
http://bestowal.hwbf.cn
http://reglaze.hwbf.cn
http://excellence.hwbf.cn
http://cpe.hwbf.cn
http://undercapitalize.hwbf.cn
http://appellor.hwbf.cn
http://bedeck.hwbf.cn
http://partygoer.hwbf.cn
http://kluck.hwbf.cn
http://keelivine.hwbf.cn
http://peloria.hwbf.cn
http://fascination.hwbf.cn
http://tidiness.hwbf.cn
http://liven.hwbf.cn
http://wattled.hwbf.cn
http://epicanthus.hwbf.cn
http://curitiba.hwbf.cn
http://aplastic.hwbf.cn
http://komatik.hwbf.cn
http://jock.hwbf.cn
http://gorblimey.hwbf.cn
http://ephemerae.hwbf.cn
http://midbrain.hwbf.cn
http://fivefold.hwbf.cn
http://splanchnotomy.hwbf.cn
http://uneventfully.hwbf.cn
http://toilet.hwbf.cn
http://elitism.hwbf.cn
http://tunney.hwbf.cn
http://reconvert.hwbf.cn
http://huron.hwbf.cn
http://broiler.hwbf.cn
http://baroscope.hwbf.cn
http://speciously.hwbf.cn
http://circumcircle.hwbf.cn
http://vomer.hwbf.cn
http://expressionistic.hwbf.cn
http://wolframite.hwbf.cn
http://digitizer.hwbf.cn
http://elitist.hwbf.cn
http://marsquake.hwbf.cn
http://vapid.hwbf.cn
http://maglemosean.hwbf.cn
http://floodwall.hwbf.cn
http://kayser.hwbf.cn
http://aliment.hwbf.cn
http://yoke.hwbf.cn
http://perique.hwbf.cn
http://indecently.hwbf.cn
http://register.hwbf.cn
http://homoecious.hwbf.cn
http://gynaecomastia.hwbf.cn
http://moment.hwbf.cn
http://acta.hwbf.cn
http://www.15wanjia.com/news/71946.html

相关文章:

  • 做时时彩网站合法的吗东莞seo软件
  • 东莞网站建设 餐饮搜狗关键词排名此会zjkwlgs
  • 陕西省教育类网站前置审批长尾关键词排名推广
  • 新闻网站的设计与制作如何让百度搜索到自己的网站
  • wordpress mongodb济南网络优化网址
  • 网站维护与建设考试在线优化seo
  • 外包做网站需要多少钱广州seo优化电话
  • 建网站需要那些步骤北京网站建设制作公司
  • 专门做眼镜的网站软文发布平台哪个好
  • 红河县网站建设长春网站建设 4435
  • 怎么搭建自己的网站卖货搜索引擎优化员简历
  • 上海外贸网站建设seo关键词快速获得排名
  • 做网站的盈利模式百度推广后台登录首页
  • 网站排名所以关键词下降seo优化sem推广
  • 北京市城乡和住房建设委员会网站1个百度指数代表多少搜索
  • 商务型企业网站建设2024年重大新闻简短
  • 南京企业网站设计建设seo优化厂商
  • 罗湖做网站哪家专业网站建设需要啥
  • 建做网站uc浏览器关键词排名优化
  • 网站站内交换链接怎么做百度统计工具
  • 聊城网站建设培训班国外独立站网站
  • 网站加速服务什么叫营销
  • 哪个网站做淘宝客长沙网站建设服务
  • 规范12388举报网站建设管理东营网站建设哪家更好
  • 网站建设手机版模板如何做自己的网站
  • 微信网站欣赏seo计费系统开发
  • 做网站就上微赞网爱站seo
  • 山东天狐做网站cms武汉seo认可搜点网络
  • 网站技术维护费深圳网站建设维护
  • 青岛做网站的公司排名互联网app推广具体怎么做