Skip to content

Instantly share code, notes, and snippets.

View TitanDoctorMachine's full-sized avatar

DocMac TitanDoctorMachine

View GitHub Profile
@rosmianto
rosmianto / convert_byte_array.ino
Created February 23, 2020 06:56
How to Convert Byte Array to Hexstring Arduino Platform
void setup() {
byte example[] = {0x31, 0x32, 0x33, 0x34};
int length = 4;
String result = "";
String hexstring = "";
for(int i = 0; i < length; i++) {
if(example[i] < 0x10) {
hexstring += '0';