add: edge docker-compose.yaml
This commit is contained in:
14
edge/main.py
14
edge/main.py
@@ -23,14 +23,14 @@ if __name__ == "__main__":
|
||||
],
|
||||
)
|
||||
# Create an instance of the StoreApiAdapter using the configuration
|
||||
hub_adapter = HubHttpAdapter(
|
||||
api_base_url=HUB_URL,
|
||||
)
|
||||
# hub_adapter = HubMqttAdapter(
|
||||
# broker=HUB_MQTT_BROKER_HOST,
|
||||
# port=HUB_MQTT_BROKER_PORT,
|
||||
# topic=HUB_MQTT_TOPIC,
|
||||
# hub_adapter = HubHttpAdapter(
|
||||
# api_base_url=HUB_URL,
|
||||
# )
|
||||
hub_adapter = HubMqttAdapter(
|
||||
broker=HUB_MQTT_BROKER_HOST,
|
||||
port=HUB_MQTT_BROKER_PORT,
|
||||
topic=HUB_MQTT_TOPIC,
|
||||
)
|
||||
# Create an instance of the AgentMQTTAdapter using the configuration
|
||||
agent_adapter = AgentMQTTAdapter(
|
||||
broker_host=MQTT_BROKER_HOST,
|
||||
|
||||
Reference in New Issue
Block a user