Skip to content
This repository was archived by the owner on Nov 29, 2024. It is now read-only.

McMaster-Rocketry-Team/TechDev_ESP32C3_BLE_Prototype

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

TechDev-ESP32C3_BLE-Prototype

Prototype ESP32C3 BLE server and client communication with Ultrasonic Sensor

How it works:

  • BLE is a power-conserving variant of Bluetooth designed for short-distance transmission of small amounts of data.
  • BLE devices can act as either a server or a client.
  • The server advertises its existence and contains data that the client can read.
  • The client scans for nearby devices and, when it finds the server it is looking for, establishes a connection and listens for incoming data.
  • Communication between the server and client is based on the Generic Attribute Profile (GATT), which defines a hierarchical data structure for sending and receiving standard messages.
  • The GATT hierarchy consists of profiles, services, characteristics, and descriptors.
  • A profile is a standard collection of services for a specific use case.
  • A service is a collection of related information, such as sensor readings or battery level.
  • A characteristic is where the actual data is stored within the hierarchy.
  • A descriptor describes how the characteristic value can be interacted with, such as read, write, notify, or indicate.
  • Each service, characteristic, and descriptor has a unique identifier called a UUID (Universally Unique Identifier).
  • Data is exchanged between the server and client by reading and writing characteristic values using their UUIDs.

image

image

Client and Server:

b4cd47e7-ac7f-4af7-b639-9b92c936b590

About

Prototype ESP32C3 BLE server and client communication with Ultrasonic Sensor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages