migrating to c++: communication class is repsonsible for sending debug strings over uart