The submodule collapse was only half applied: .gitmodules was deleted but backend/ and frontend/ were still recorded as gitlinks, so none of their files were tracked. Replace the gitlinks with the real trees. Also untrack .env (it carried placeholder secrets) in favour of a tracked .env.example, drop the committed __pycache__, and narrow the blanket *.png ignore that would have swallowed design assets.
26 lines
562 B
Python
26 lines
562 B
Python
from nodes import MqttNode
|
|
from util import Message
|
|
|
|
import logging
|
|
|
|
logging.basicConfig(
|
|
level=logging.INFO,
|
|
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
|
|
)
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
|
def create_node(params: dict) -> MqttNode:
|
|
return MqttNode(
|
|
requires=[
|
|
Message(name="random_value_send", dtype=int),
|
|
],
|
|
params={
|
|
"broker_host": "127.0.0.1",
|
|
"topic": {
|
|
"random_value_send": "random_value",
|
|
},
|
|
},
|
|
name="mqtt_a",
|
|
)
|