ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

You are using strcat on a destination string that has length 10 (length of "Zelle 1: "), i.e. your destination of strcat just doesn't provide enough space and strcat might mess up your memory. This probably lets your micro controller die and the connection to it is lost.

Explicitly specify the length of the array Text and make sure that it is big enough to keep "Zelle 1: " and your voltage.

You are using strcat on a destination string that has length 10 (length of "Zelle 1: "), i.e. your destination of strcat just doesn't provide enough space and strcat might mess up your memory. This probably lets your micro controller die and the connection to it is lost.

Explicitly specify the length of the array Text and make sure that it is big enough to keep "Zelle 1: " and your voltage.voltage or use the other array you are defining.