MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / toHexString

Function toHexString

Tactility/Source/service/wifi/WifiApSettings.cpp:27–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25constexpr auto* AP_PROPERTIES_KEY_CHANNEL = "channel";
26
27std::string toHexString(const uint8_t *data, int length) {
28 std::stringstream stream;
29 stream << std::hex;
30 for( int i(0) ; i < length; ++i )
31 stream << std::setw(2) << std::setfill('0') << static_cast<int>(data[i]);
32 return stream.str();
33}
34
35bool readHex(const std::string& input, uint8_t* buffer, int length) {
36 if (input.size() / 2 != length) {

Callers 1

encryptFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected