Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MQTT Device is prepended to the name of registered MQTT devices in some cases #3322

Open
Bravo555 opened this issue Jan 9, 2025 · 0 comments
Assignees
Labels
bug Something isn't working theme:c8y Theme: Cumulocity related topics

Comments

@Bravo555
Copy link
Contributor

Bravo555 commented Jan 9, 2025

Describe the bug

A string MQTT Device can be prepended to the name of some devices in Cumulocity when using thin-edge.io:

image

MQTT Device is prepended by Cumulocity 1 if publishing on a topic for a device that was not registered.
Can be manually triggered by publishing a message like: tedge mqtt pub c8y/s/us/my_device 101,myChildDevice,myType
If my_device registration message is not sent beforehand, MQTT Device my_device is automatically registered.

This bug can sometimes happen in thin-edge due to random order of c8y registration messages being sent when e.g. reconnecting to the broker if the device was deleted from the broker.

To Reproduce

The bug is difficult to reproduce with thin-edge because it's somewhat random. If a consistent method is found it will be placed here.

Expected behavior

Device names should never be prepended with MQTT Device; locally we know full names and types of entities before sending any messages to the cloud so we should explicitly register a device before sending any messages.

Screenshots

Environment (please complete the following information):

  • OS [incl. version]
  • Hardware [incl. revision]
  • System-Architecture [e.g. result of "uname -a"]
  • thin-edge.io version [e.g. 0.1.0]

Additional context

@Bravo555 Bravo555 added bug Something isn't working theme:c8y Theme: Cumulocity related topics labels Jan 9, 2025
@Bravo555 Bravo555 self-assigned this Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working theme:c8y Theme: Cumulocity related topics
Projects
None yet
Development

No branches or pull requests

1 participant