Skip to content

Commit b4153c7

Browse files
committed
deving
1 parent 2e7e9c8 commit b4153c7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+19272
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: 部署到 GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
name: 构建 Docusaurus
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: 18
19+
cache: npm
20+
21+
- name: 安装依赖
22+
run: npm ci
23+
- name: 构建网站
24+
run: npm run build
25+
26+
- name: 上传构建制品
27+
uses: actions/upload-pages-artifact@v3
28+
with:
29+
path: build
30+
31+
deploy:
32+
name: 部署到 GitHub Pages
33+
needs: build
34+
35+
# 给予 GITHUB_TOKEN 进行 Pages 部署所必须的权限
36+
permissions:
37+
pages: write # 以部署到 Pages
38+
id-token: write # 以验证部署来自恰当的源
39+
40+
# 部署到 Github Pages 环境
41+
environment:
42+
name: github-pages
43+
url: ${{ steps.deployment.outputs.page_url }}
44+
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: 部署到 GitHub Pages
48+
id: deployment
49+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

docs/apps/http.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# HTTP

docs/apps/influxdb.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# InfluxDB

docs/apps/kafka.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Kafka

docs/apps/mqtt.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# MQTT

docs/apps/tdengine.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# TdEngine

docs/devices/device-template.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# 设备模板
2+
3+
当你有多个同类型的设备需要管理时,可以借助设备模板来极大的减少管理设备的工作量。在设备模板中增加源,将会对所有使用该模板创建的设备同时创建源,动作同理。针对设备模板的修改,同时会影响到使用该模板创建的所有设备。

docs/devices/devices/coap.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Coap

docs/devices/devices/modbus.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Modbus
2+
3+
### 设备
4+
- **物理链路**:可选择以太网或串口。
5+
- **编码方式**:可选择tcp或rtu over tcp。
6+
- **指令发送间隔**:每条读或写指令之间的时间间隔。
7+
- **重连时间**:说明此规则配置的作用,方便后续检查与管理。
8+
- **host**: 目标设备的IP地址或域名地址。
9+
- **端口**: 目标设备的端口。
10+
11+
###
12+
- **从站**: modbus协议的slave值。
13+
- **地址**: 点位的地址,从0开始。
14+
- **字段**: 产生值的字段。
15+
- **区域**: 可选线圈状态、离散输入状态、输入寄存器、保持寄存器。
16+
- **类型**:值的类型,支持bool、uint8、int8、uint16、int16、uint32、int32、uint64、int64、float32、float64、string、bytes。
17+
- **编码**:不同的类型对应不同的编码。
18+
- **间隔**:轮询的间隔。
19+
20+
### 动作
21+
- **从站**: modbus协议的slave值。
22+
- **地址**: 点位的地址,从0开始。
23+
- **区域**: 可选线圈状态、离散输入状态、输入寄存器、保持寄存器。
24+
- **类型**:值的类型,支持bool、uint8、int8、uint16、int16、uint32、int32、uint64、int64、float32、float64、string、bytes。
25+
- **编码**:不同的类型对应不同的编码。

0 commit comments

Comments
 (0)