Get the latest tech news
Building a GATT Server on Pi Pico W
his webpage documents this GATT server example, demonstrated in the video below. These materials have been assembled for students in ECE 4760 at Cornell, though I hope that they may be useful for hobbyists that wish to build a Bluetooth interface to their Pi Pico W projects.
This metadata includes things like a Universal Unique Identifier (UUID), access permissions, and a 16-bit handle that acts like the "name" or "address" of that attribute. This attribue is of length 0x0008 (8 bytes), has access properties 0x010a (read, write, dynamic), has a handle of 0x000b (11th row of database), and a type of 0x2901 (standard UUID for characteristic user description). By changing the value of this characteristic, the GATT client can adjust the frequency of the sine wave that gets communicated to an SPI DAC and, ultimately, to a set of speakers.
Or read this on Hacker News