No ACL setup yet! Denying access to everyone.
en:edu:zmitac:s2:iotn:ble3

Bluetooth Low Energy notification

In the previous example, a simple peripheral device program has been shown. The program allowed the central device to read characteristics with the data required. In this part, we will add the notification and indication mechanisms to enable automatic updating of the information in which the central device is interested. Both methods of data transmission work similarly to interrupt in microprocessors. The client subscribes to the data by enabling notification or indication. Data is sent only if the peripheral decides to do it, periodically or on update. This saves the network use and energy. The Notification is not acknowledged, the indication must be acknowledged by the central device. Both mechanisms are controlled with the characteristic descriptor with UUID 0x2902.

  • Notification is controlled with bit 0 (0-disable, 1-enable).
  • Indication is controlled with bit 1 (0-disable, 1-enable).

Notification

en/edu/zmitac/s2/iotn/ble3.txt · Last modified: by ktokarz