Modifications
Sauter à la navigation
Sauter à la recherche
← Modification précédente
Modification suivante →
Bluefruit-LE-Shield-BLE-GATT
(voir la source)
Version du 28 juin 2017 à 11:14
437 octets supprimés
,
28 juin 2017 à 11:14
→AT+GATTADDSERVICE
Ligne 57 :
Ligne 57 :
# Add a battery measurement characteristic (UUID = 0x2A19), notify enabled
# Add a battery measurement characteristic (UUID = 0x2A19), notify enabled
AT+GATTADDCHAR=UUID=0x2A19,PROPERTIES=0x10,MIN_LEN=1,VALUE=100
AT+GATTADDCHAR=UUID=0x2A19,PROPERTIES=0x10,MIN_LEN=1,VALUE=100
−
1
−
OK</nowiki>
−
−
<nowiki># Clear any previous custom services/characteristics
−
AT+GATTCLEAR
−
OK
−
−
# Add a custom service to the peripheral
−
AT+GATTADDSERVICE=UUID128=00-11-00-11-44-55-66-77-88-99-AA-BB-CC-DD-EE-FF
−
1
−
OK
−
−
# Add a custom characteristic to the above service (making sure that there
−
# is no conflict between the 16-bit UUID and bytes 3+4 of the 128-bit service UUID)
−
AT+GATTADDCHAR=UUID=0x0002,PROPERTIES=0x02,MIN_LEN=1,VALUE=100
1
1
OK</nowiki>
OK</nowiki>
Admin
Bureaucrates
,
Administrateurs
29 917
modifications
Menu de navigation
Outils personnels
Se connecter
Espaces de noms
Page
Discussion
Variantes
Affichages
Lire
Voir le texte source
Voir l’historique
Plus
Rechercher
Navigation
ARDUINO
RASPBERRY-PI
[:: PI Hacking ::]
Particle.IO
Micro Python
Imprimante 3D
Actualités
Modifications récentes
Page au hasard
Aide
Outils
Pages spéciales
Version imprimable