Skip to content

Instantly share code, notes, and snippets.

@fijimunkii
Created August 16, 2020 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fijimunkii/a3904e287ce21f324f5ae35f2b3b7421 to your computer and use it in GitHub Desktop.
Save fijimunkii/a3904e287ce21f324f5ae35f2b3b7421 to your computer and use it in GitHub Desktop.
cast to string c++
#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