上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: #region 登录信息/// <summary> /// 密码 /// </summary> private string _Pwd; /// <summary> /// 密码 /// </summary> public string Pwd { get { return _Pwd; } set 阅读全文
posted @ 2024-05-18 12:46 野码 阅读(347) 评论(0) 推荐(0)
摘要: Quartz.NET 是一个用于调度任务和作业的开源框架,它允许开发人员创建简单或复杂的调度方案,例如定时执行任务,定时触发作业等。 创建调度器很简单需要三个对象: IScheduler、IJob、ITrigger,直接上代码,使用可根据需求再扩展 using Quartz; using Quart 阅读全文
posted @ 2024-05-09 14:07 野码 阅读(245) 评论(0) 推荐(0)
摘要: 花了6个小时写的Modbus通信案例,通信方式包括RTU,ASCII,TCP,UTP。 案例图: using Modbus.Data; using Modbus.Device; using System; using System.Collections.Generic; using System. 阅读全文
posted @ 2024-05-07 16:48 野码 阅读(115) 评论(0) 推荐(0)
摘要: Modbus协议类型 Modbus从站四张表类型 主站常用功能码 Modbus TCP请求报文,功能码03 Modbus TCP应答报文,功能码03 00 17为23个字节:请求长度加应答长度06+17=23; 14为20长度:14+06=20 Modbus UDP请求报文,功能码03 Modbus 阅读全文
posted @ 2024-05-06 19:33 野码 阅读(2447) 评论(0) 推荐(0)
摘要: 文档:SerialPort 类 (System.IO.Ports) | Microsoft Learn 页面展示: 代码: using System; using System.Collections.Generic; using System.ComponentModel; using Syste 阅读全文
posted @ 2024-05-06 17:05 野码 阅读(103) 评论(0) 推荐(0)
摘要: 1. 父传值子,数据绑定: properties Component({ properties: { propA: { type: String, // 传递的数据类型 value: '' // 默认值 }, propB: Number // 简化的定义方式 } }) <!-- 引用组件的页面模板 阅读全文
posted @ 2024-04-24 12:59 野码 阅读(339) 评论(0) 推荐(0)
摘要: 消息提示框封装: //消息提示框封装 /** // 提示的内容 title: '消息提示框', // 提示的内容 icon: 'success', // 提示的图标,success(成功)、error(失败)、loading(加载)、none(不显示图标) duration: 2000, // 提示 阅读全文
posted @ 2024-04-22 14:05 野码 阅读(786) 评论(0) 推荐(0)
摘要: 1.创建一个小程序 2. 重置 app.js 中的代码 App({ }) 3.删除app.json里面的componentFramework,pages/logs/logs目录要删除,pages/logs的文件删除 { "pages": [ "pages/index/index" ], "windo 阅读全文
posted @ 2024-04-21 19:30 野码 阅读(86) 评论(0) 推荐(0)
摘要: Consul主机:http://localhost:8500 新建子服务:Consul.ServiceA【http://localhost:5011】,Consul.ServiceB【http://localhost:5012】 配置内容(06_NET中使用Consul(服务发现) - 野码 - 博 阅读全文
posted @ 2024-04-16 12:33 野码 阅读(116) 评论(0) 推荐(1)
摘要: 官网:Consul by HashiCorp 中文文档:Consul 中文文档 | Consul 中文文档 (gitbook.io) 安装Consul window安装:Install | Consul | HashiCorp Developer 1. 选择windows x64 版本(64bit) 阅读全文
posted @ 2024-04-16 10:59 野码 阅读(194) 评论(0) 推荐(1)
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页