Standard C library to encode and decode bytes to hexadecimal.
Supports any microcontroller.
You have this new type used as return type of encoding, which has 2 bytes, named 'a' and 'b': - uHexLib2Bytes: { uint8_t a; uint8_t b; }
You have uHexLib class with following static methods:
- **uHexLib2Bytes uHexLib::encode(const char);** : Given one char it encodes it to 2 base64 chars and returns the struct
- **char uHexLib::decode(const char inA, const char inB);** : Given two base64 chars it decodes and returns them as 1 char
- **uint16_t uHexLib::encode(const char in[], char out[]);** : Given one char it encodes it to 2 base64 chars and returns the struct
- **uint16_t uHexLib::decode(const char in[], char out[]);** : Given two base64 chars it decodes and returns them as 1 char
You can get it from Arduino libraries directly, searching by uHexLib.
For manual installation:
- Get the ZIP from releases link: https://github.com/Naguissa/uHexLib/releases
- Rename to uHexLib.zip
- Install library on Arduino
Included on example folder, available on Arduino IDE.
Any code contribution, report or comment are always welcome. Don't hesitate to use GitHub for that.
- You can sponsor this project using GitHub's Sponsor button: https://github.com/Naguissa/uHexLib
- You can make a donation via PayPal: https://paypal.me/foroelectro
Thanks for your support.
Contributors hall of fame: https://www.foroelectro.net/hall-of-fame-f32/contributors-contribuyentes-t271.html