diff --git a/db/__pycache__/api.cpython-310.pyc b/db/__pycache__/api.cpython-310.pyc deleted file mode 100644 index 8e3719d..0000000 Binary files a/db/__pycache__/api.cpython-310.pyc and /dev/null differ diff --git a/db/api.py b/src/api.py similarity index 100% rename from db/api.py rename to src/api.py diff --git a/src/sensor_to_local.py b/src/sensor_to_local.py index 3cde9a6..920e784 100644 --- a/src/sensor_to_local.py +++ b/src/sensor_to_local.py @@ -4,7 +4,7 @@ import time import serial from db.models.lot_data_model import LOT_DATA -from db.api import add +from api import add if __name__ == '__main__': temp_send = '06 03 01 F4 00 02 85 B2 ' # 温湿度查询指令 diff --git a/src/sensor_to_server.py b/src/sensor_to_server.py index ec2125d..6046279 100644 --- a/src/sensor_to_server.py +++ b/src/sensor_to_server.py @@ -6,7 +6,7 @@ import time import serial import paho.mqtt.client as mqtt -from db.api import add +from api import add from db.models.lot_data_model import LOT_DATA