This PR adds a new function convertStringToIntNoExcept(), which utilizes std::strtol() to check whether the input environment variable GPIO is valid or not. This function is designed not to throw any exception errors, as exception throwing has been disabled by default in the SDK.
resolves #11
Test instruction
Build snap from this PR:
snapcraft
Validate that the app will raise corresponding errors when the env var GPIO is either non-interger or invalid (less than 0):
This PR adds a new function
convertStringToIntNoExcept()
, which utilizesstd::strtol()
to check whether the input environment variableGPIO
is valid or not. This function is designed not to throw any exception errors, as exception throwing has been disabled by default in the SDK.resolves #11
Test instruction
Build snap from this PR:
Validate that the app will raise corresponding errors when the env var
GPIO
is either non-interger or invalid (less than 0):check logs for error message:
check logs for error message: