Host library for controlling a WiConnect enabled Wi-Fi module.
Dependents: wiconnect-ota_example wiconnect-web_setup_example wiconnect-test-console wiconnect-tcp_server_example ... more
Diff: api/StringUtil.h
- Revision:
- 34:2616445d0823
- Parent:
- 29:b6af04b77a56
--- a/api/StringUtil.h Mon Oct 27 14:16:03 2014 -0700 +++ b/api/StringUtil.h Wed Nov 26 23:46:00 2014 -0800 @@ -295,6 +295,13 @@ } /*************************************************************************************************/ + static const char* hexToStr(char* intStrBuffer, uint32_t hexInteger) + { + sprintf(intStrBuffer, "%X", hexInteger); + return intStrBuffer; + } + + /*************************************************************************************************/ static bool strToUint32(const char *str, uint32_t *uint32Ptr) { intmax_t r;