Modifications

Sauter à la navigation Sauter à la recherche
Ligne 140 : Ligne 140 :  
Le champs '''DESCRIPTION''' est une chaîne de caractère qui contient une courte description textuelle de la caractéristique. Certaines Apps pourraient ignorer cette information, elle devrait néanmoins être visible en utilisant l'application "Master Control Panel" de Nordic sous iOS et Android.
 
Le champs '''DESCRIPTION''' est une chaîne de caractère qui contient une courte description textuelle de la caractéristique. Certaines Apps pourraient ignorer cette information, elle devrait néanmoins être visible en utilisant l'application "Master Control Panel" de Nordic sous iOS et Android.
   −
{{traduction}}
+
Le champs '''PRESENTATION''' contient un payload 7-octets qui encapsule les données ''presentation format'' de la caractéristique. Il nécessite en ensemble d'octets spécifique pour fonctionner correctement. Voyez le lien suivant pour plus de détails sur le format du payload: https://developer.bluetooth.org/gatt/descriptors/Pages/DescriptorViewer.aspx?u=org.bluetooth.descriptor.gatt.characteristic_presentation_format.xml
   −
The '''PRESENTATION''' field contains a 7-byte payload that encapsulates the characteristic presentation format data.  It requires a specific set of bytes and values to work properly. See the following link for details on how to format the payload: https://developer.bluetooth.org/gatt/descriptors/Pages/DescriptorViewer.aspx?u=org.bluetooth.descriptor.gatt.characteristic_presentation_format.xml
+
L'exemple suivant montre comment vous pouvez utiliser ces deux nouveaux champs:
 
  −
The following example shows how you might use both of these new fields:
      
  <nowiki>AT+GATTADDCHAR=UUID=0x2A37, PROPERTIES=0x10, MIN_LEN=2, MAX_LEN=3, VALUE=00-40,  
 
  <nowiki>AT+GATTADDCHAR=UUID=0x2A37, PROPERTIES=0x10, MIN_LEN=2, MAX_LEN=3, VALUE=00-40,  
 
               DESCRIPTION=HRM Measurement, PRESENTATION=17-00-AC-27-01-00-00</nowiki>
 
               DESCRIPTION=HRM Measurement, PRESENTATION=17-00-AC-27-01-00-00</nowiki>
   −
For the Characteristic Presentation Format we have:
+
Pour le format de présentation de la caractéristique nous avons:
 
* Format = IEEE-11073 32-bit FLOAT (Decimal 23, Hex 0x17)
 
* Format = IEEE-11073 32-bit FLOAT (Decimal 23, Hex 0x17)
* Exponent = 0/None
+
* Exposant = 0/aucun
* Unit = Thermodynamic temperature: Degrees Fahrenheit (0x27AC) - Bluetooth LE Unit List
+
* Unité = témpérature thermodynamique (Thermodynamic temperature): Degrés Fahrenheit (0x27AC) - Bluetooth LE Unit List
* Namespace = Bluetooth SIG Assigned Number (0x01)
+
* Espace de nom/Namespace = Bluetooth SIG Assigned Number (0x01)
* Description = None (0x0000)
+
* Description = Aucune (0x0000)
   −
The results from Nordic's Master Control Panel app can be seen below:
+
L'application "Master Control Panel" de Nordic affiche l'information suivante:
    
{{ADFImage|Bluefruit-LE-Shield-BLE-GATT-00.png}}
 
{{ADFImage|Bluefruit-LE-Shield-BLE-GATT-00.png}}
29 917

modifications

Menu de navigation