Feedback
Feedback

If you are having issues with the exercises, please create a ticket on DevZone: devzone.nordicsemi.com
Click or drag files to this area to upload. You can upload up to 2 files.

Lesson 4 – Data exchange in Bluetooth LE

Overview

In this lesson, we will take a closer look at the Generic Attribute Protocol (GATT), its underlayer Attribute Protocol (ATT). We will learn how to represent and exchange data between two connected Bluetooth LE devices using different GATT operations. We will also examine important concepts in Bluetooth LE such as services and characteristics.

In the theory part of this lesson, we are going into the details of GATT and ATT, the attributes table structure, and the GATT operations available for data exchange, such as read and write.

We will build a complete Bluetooth LE peripheral profile that uses both standard and custom Bluetooth LE services and characteristics. In exercise 1 of this lesson, we will learn how to build the LED Button Service from scratch and focus on GATT read and write operations. In exercise 2, we will complete the LBS service and cover GATT notifications and indications. The last exercise will be about the Nordic UART Service (NUS) and how to add standard Bluetooth LE defined services.

Objectives

  • Understand the roles of the Generic Attribute Protocol (GATT) and Attribute Protocol (ATT)
  • Learn how GATT is used to represent and exchange data in Bluetooth LE connections
  • Examine the attributes table of a Bluetooth LE peripheral device
  • Master how to create GATT services and characteristics
  • Learn about the available standard Bluetooth LE services in nRF Connect SDK
  • Practice through hands-on exercises creating and adding custom and standard Bluetooth LE service and characteristics
  • Practice through hands-on exercises using GATT APIs (read, write, write with no response, notify, indicate)
Register an account
Already have an account? Log in
(All fields are required unless specified optional)

  • 8 or more characters
  • Upper and lower case letters
  • At least one number or special character

Forgot your password?
Enter the email associated with your account, and we will send you a link to reset your password.