Created
August 16, 2020 20:08
-
-
Save fijimunkii/a3904e287ce21f324f5ae35f2b3b7421 to your computer and use it in GitHub Desktop.
cast to string c++
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string> // std::string | |
#include <string.h> // string | |
#include <sstream> // std::stringstream | |
std::ostringstream stream; | |
stream << remoteCharacteristic->readUInt16(); | |
std::string strValue = stream.str(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment