Datasheet

AT+BLEBATTEN
Enables the Battery Service following the definition from the Bluetooth SIG.
Codebase Revision: 0.7.0
Parameters: Whether the battery service should be enabled, via on of the following values:
on
off
1
0
Output: If executed with no parameters, a numeric value will be returned indicating whether
the battery service is enabled (1) or disabled (0).
AT+BLEBATTVAL
Sets the current battery level in percentage (0..100) for the Battery Service (if enabled).
Codebase Revision: 0.7.0
# Send 1 event (middle C with max velocity)
AT+BLEMIDITX=90-3C-7F
OK
# Send 2 events
AT+BLEMIDITX=90-3C-7F-A0-3C-7F
OK
# Send 1 full event + running event
AT+BLEMIDITX=90-3C-7F-3C-7F
OK
This command requires a system reset to take effect.
# Enable the Battery Service
AT+BLEBATTEN=1
OK
© Adafruit Industries https://learn.adafruit.com/adafruit-feather-m0-bluefruit-le Page 160 of 238