This commit is contained in:
xyj 2023-12-12 17:02:19 +08:00
parent 2eb08f85f5
commit fc4b470dfe
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,2 @@
#!/bin/bash #!/bin/bash
rm /home/pi/device_name
cp ../conf/tmp/device_name /home/pi cp ../conf/tmp/device_name /home/pi

View File

@ -1,4 +1,4 @@
# 设备1 # 设备1-32G
# 编号 # 编号
[lihai_lot_walnutpi_dev_1] [lihai_lot_walnutpi_dev_1]
# 订阅的控制主题,必须和系统设置的相同 # 订阅的控制主题,必须和系统设置的相同
@ -8,6 +8,7 @@ publish_topic=device1
username=demo username=demo
password=123456 password=123456
#################################### ####################################
# 设备2-32G
[lihai_lot_walnutpi_dev_2] [lihai_lot_walnutpi_dev_2]
# 订阅的控制主题,必须和系统设置的相同 # 订阅的控制主题,必须和系统设置的相同
subscribe_topic=lihai_lot_walnutpi_dev_2 subscribe_topic=lihai_lot_walnutpi_dev_2
@ -16,6 +17,7 @@ publish_topic=device2
username=demo username=demo
password=123456 password=123456
#################################### ####################################
# 设备3-64G
[lihai_lot_walnutpi_dev_3] [lihai_lot_walnutpi_dev_3]
# 订阅的控制主题,必须和系统设置的相同 # 订阅的控制主题,必须和系统设置的相同
subscribe_topic=lihai_lot_walnutpi_dev_3 subscribe_topic=lihai_lot_walnutpi_dev_3
@ -24,6 +26,7 @@ publish_topic=device3
username=demo username=demo
password=123456 password=123456
#################################### ####################################
# 设备4-64G
[lihai_lot_walnutpi_dev_4] [lihai_lot_walnutpi_dev_4]
# 订阅的控制主题,必须和系统设置的相同 # 订阅的控制主题,必须和系统设置的相同
subscribe_topic=lihai_lot_walnutpi_dev_4 subscribe_topic=lihai_lot_walnutpi_dev_4
@ -32,6 +35,7 @@ publish_topic=device4
username=demo username=demo
password=123456 password=123456
#################################### ####################################
# 设备5-64G
[lihai_lot_walnutpi_dev_5] [lihai_lot_walnutpi_dev_5]
# 订阅的控制主题,必须和系统设置的相同 # 订阅的控制主题,必须和系统设置的相同
subscribe_topic=lihai_lot_walnutpi_dev_5 subscribe_topic=lihai_lot_walnutpi_dev_5
@ -40,6 +44,7 @@ publish_topic=device5
username=demo username=demo
password=123456 password=123456
#################################### ####################################
# 设备6-64G
[lihai_lot_walnutpi_dev_6] [lihai_lot_walnutpi_dev_6]
# 订阅的控制主题,必须和系统设置的相同 # 订阅的控制主题,必须和系统设置的相同
subscribe_topic=lihai_lot_walnutpi_dev_6 subscribe_topic=lihai_lot_walnutpi_dev_6