hex to int wip

This commit is contained in:
2021-02-25 15:53:28 +01:00
parent 5d24627c91
commit 4c09e973be
5 changed files with 37 additions and 4 deletions

View File

@ -184,6 +184,19 @@ std::string SyrlinksHkHandler::convertIntToHexString(uint16_t intValue) {
return stream.str();
}
uint8_t SyrlinksHkHandler::convertHexStringToUint8(char* twoChars) {
uint8_t value;
std::string hexString(twoChars, 2);
std::stringstream stream;
stream << std::hex << hexString;
stream >> value;
return value;
}
uint16_t convertHexStringToUint16(char* fourChars) {
}
ReturnValue_t SyrlinksHkHandler::parseReplyStatus(const char* status) {
switch (*status) {
case '0':