I am using the BLE function ReadBytes to receive data from a Wahoo Cadence and Speed sensor. I am receiving the data but according to the specifications the Cadence is contained in the second and third bytes the time is in the third and fourth bytes. I’ve read through many tutorials but I am still puzzled on how to combine two bytes of data into an integer.
Try the BLE .ReadIntegers block. If there is no value separator in the data stream, you can split the number received as though it was text (via the segment text - start - length block).
Be sure to test those flag bits, to get the proper displacement into the byte list for the crank revolution. The math block bitwise-and is good for testing flag bits in a byte value (128, 64, 32, ...)