Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue_django_test
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周田
vue_django_test
Commits
be7027a9
Commit
be7027a9
authored
Sep 11, 2023
by
周田
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mod
parent
f2f06cea
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
4 deletions
+2
-4
views.py
device_communication/views.py
+1
-1
views.py
device_data_op/views.py
+0
-1
mqtt.py
mqtt/mqtt.py
+1
-2
xdc.sqlite
xdc.sqlite
+0
-0
No files found.
device_communication/views.py
View file @
be7027a9
...
...
@@ -76,7 +76,7 @@ def set_communication_to_devinfo_table(request):
# 清空设备信息表
# TODO:实际开始用的时候,需要将这个注释打开
#
TableXproAllDevinfo.objects.all().delete()
TableXproAllDevinfo
.
objects
.
all
()
.
delete
()
TableXproAllDevinfo
.
objects
.
bulk_create
(
[
TableXproAllDevinfo
(
sta_id
=
communication
.
station_id
,
...
...
device_data_op/views.py
View file @
be7027a9
...
...
@@ -26,7 +26,6 @@ class TableAllDevCmdDefineView(ModelViewSet):
def
perform_destroy
(
self
,
instance
):
"""
删除某个字段,需要将字段的 index 更新
TODO: 返回更新后的数据(不能做完一个操作之后,页面就刷新)
"""
# 获取改字段的 cmd_name
...
...
mqtt/mqtt.py
View file @
be7027a9
...
...
@@ -31,9 +31,8 @@ def on_message(mqtt_client, userdata, msg):
def
send_message
(
data
:
dict
,
device_name
:
str
):
"""
发送 websocket 消息
TODO: 通过不同的 port 发向不同的 group name
"""
send_websocket_message
(
data
)
dev_info
=
TableXproAllDevinfo
.
objects
.
filter
(
dev_name
=
device_name
)
.
first
()
if
"TCP"
in
dev_info
.
comunitate_mode
.
upper
():
...
...
xdc.sqlite
View file @
be7027a9
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment