Im SOO very new to Flutter and I dont know where to begin. I need to convert a string like this 349caa523e0787003e0787033e053e08 to (what I assume is an array in flutter) to write to flutter_blue.
I need to convert it to 0x39, 0x9c,0xaa .... so that I can pass this to await d.write([0xXX, 0xXX])
I did get some help doing it Javascript eg.
var s = "ab05d705";
var result = [];
for (var i = 0; i < s.length; i += 2) {
result.push(parseInt(s.substring(i, i + 2), 16));
}
result = Uint8Array.from(result);
Any help would be appreciate. Thanks