Closed rina23q closed 2 years ago
The correct way to fix this issue would be to establish a direct connection from the tedge connect
command to Cumulocity to create the device there and to create the bridge only once properly done.
This would also make useless the double restart of mosquitto - a workaround that has been added because Cumulocity creates some of the topics only once the device is registered.
That said the quicker fix is to delayed the start of the mappers after the connection check. I would do that first, to have the time to implement a proper fix.
Describe the bug The new device created named
MQTT Device <device name>
and the type isc8y_MQTTDevice
.The root cause is,
114
is published by tedge-mapper-c8y earlier than100
by tedge connect.Also, our connect order:
I think we just need to change the order, move tedge-mapper-c8y start after sending packets to c8y.
To Reproduce Run
tedge connect c8y
on a newly registering device.Expected behavior Name:
Type: thin-edge.io
Screenshots
Environment (please complete the following information):
Additional context It's regression after supported operation feature merged.