Use std::string directly, receive replies with timeout

Signed-off-by: Alexander Lukichev <alexander.lukichev@espotel.com>