摘要: using JwtAuth.Api.Services; using Microsoft.AspNetCore.Authentication.JwtBearer; using Microsoft.IdentityModel.Tokens; using Scalar.AspNetCore; using 阅读全文
posted @ 2025-01-03 18:04 曾锋 阅读(12) 评论(0) 推荐(0)
摘要: using System.Collections.Concurrent; using System.Text; using MQTTnet; using MQTTnet.Client; using Microsoft.Extensions.Options; using Microsoft.Exten 阅读全文
posted @ 2024-08-14 09:24 曾锋 阅读(48) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2024-07-17 10:31 曾锋 阅读(21) 评论(0) 推荐(0)
摘要: #include <stdio.h> #include <stdlib.h> #define BUF_CNT 64 char buf[BUF_CNT]={0}; typedef struct { char *buffer; int in; int out; int cnt; int size; }R 阅读全文
posted @ 2024-03-08 14:20 曾锋 阅读(73) 评论(0) 推荐(0)
摘要: #include <stdio.h> #define BUF_CNT 10 int in=0; int out=0; int cnt=0; char buf[BUF_CNT]={0}; void data_buff_init() { in = 0; out = 0; cnt = 0; } void 阅读全文
posted @ 2024-03-07 16:35 曾锋 阅读(39) 评论(0) 推荐(0)
摘要: 1、加上USB485,采集仪可以全部采集出来,不加部分采集不出来,解决办法,加信号放大器 2、总线上有一段一直采集不出来,检查线缆故障,采用2分法排查 阅读全文
posted @ 2021-12-08 10:09 曾锋 阅读(169) 评论(0) 推荐(0)
摘要: 水位项目 selectp.project_id,p.project_name, pt.project_type_name,p.createtime from project p inner join project_type pt on p.project_type_id=pt.project_ty 阅读全文
posted @ 2021-12-08 10:03 曾锋 阅读(25) 评论(0) 推荐(0)
摘要: now=os.date("*t") --tablefor i,v in pairs(now) do print(i,v)endnow=os.date("%y-%m-%d %I:%M:%S")print(now) now=os.date("%Y-%m-%d %H:%M:%S")print(now) s 阅读全文
posted @ 2021-10-20 10:57 曾锋 阅读(127) 评论(0) 推荐(0)
摘要: /*获取内存信息@api rtos.meminfo(type)@type "sys"系统内存, "lua"虚拟机内存, 默认为lua虚拟机内存 @return int 总内存大小,单位字节@return int 当前使用的内存大小,单位字节@return int 最大使用的内存大小,单位字节@usa 阅读全文
posted @ 2021-10-12 09:23 曾锋 阅读(95) 评论(0) 推荐(0)