I connected a pulse oximeter via bluetooth. Following angular-web-bluetooth https://github.com/manekinekko/angular-web-bluetooth I call the value () method. I have this answer:
DataView(7)
buffer: ArrayBuffer(7)
byteLength: 7
[[Prototype]]: ArrayBuffer
[[Int8Array]]: Int8Array(7)
0: 86
1: 84
2: 77
3: 32
4: 50
5: 48
6: 70
buffer:
ArrayBuffer(7)
byteLength: 7
byteOffset: 0
length: 7
Symbol(Symbol.toStringTag): (…)
[[Prototype]]: TypedArray
[[Uint8Array]]: Uint8Array(7)
0: 86
1: 84
2: 77
3: 32
4: 50
5: 48
6: 70
buffer:
ArrayBuffer(7)
byteLength: 7
byteOffset: 0
length: 7
Symbol(Symbol.toStringTag): (…)
[[Prototype]]: TypedArray
[[ArrayBufferByteLength]]: 7
[[ArrayBufferData]]: 144
byteLength: 7
byteOffset: 0
How can I decode the ArrayBuffer into a readable format of the values?