Submitted by hbogert on Mon, 05/11/2020 - 13:20
tl;dr
(sudo gatttool -b 04:A3:16:xx:xx:xx -t public --listen --char-write-req -a 0x000f -n 0100 --char-write-req -a 0x0013 -n 09ff0000 --char-write-req -a 0x0013 -n 12000001) | awk -n '{t = sprintf ("%d", "0x"$NF); if (t !=x) {x=t; printf "%d\r", x}}'