Added some std::string writes to serial and socket.