Skip to content

Commit

Permalink
Removed device type from default MQTT message
Browse files Browse the repository at this point in the history
  • Loading branch information
lewis-chambers committed Jun 20, 2024
1 parent 86c4ba8 commit 0d27357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iotswarm/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def __init__(
if mqtt_topic is not None:
self.mqtt_topic = str(mqtt_topic)
else:
self.mqtt_topic = f"{self.device_type}/{self.device_id}"
self.mqtt_topic = f"{self.device_id}"

if mqtt_prefix is not None:
self.mqtt_prefix = str(mqtt_prefix)
Expand Down

0 comments on commit 0d27357

Please sign in to comment.