Bonjour,
mon problème est le suivant :
Je recoit une trame de la forme "00 00 90 01 00 00 00 07 96" et je souhaite récupéré la moitié du 3ème octets pour ensuite le traité et exploiter les informations.
J'ai notamment essayer avec getvalues(index) mais il renvoit l'octet en entier.
Voici la doc qui ma été fournis si ça peut vous aider a comprendre :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13 Byte Nibble Bit Meaning 00. 0 00 Anemometer data packet 00. 1 Bx Battery status. Higher value == lower battery 00. 1 xB Unknown 00. 2 DD Gust direction, bc of 0<abc<359 degrees 00. 3 xD Gust direction, a of 0<abc<359 degrees 00. 3 Dx Gust speed, c of 0<ab.c<56 m/s 00. 4 DD Gust speed, ab of 0<ab.c<56 m/s 00. 5 DD Average speed, bc of 0<ab.c<56 m/s 00. 6 xD Average speed, a of 0<ab.c<56 m/s 00. 6 Bx Sign of wind chill, 1 = negative 00. 7 DD Wind chill
Partager