API - GATT Profile

GATT Overview

The Generic Attributes (GATT) define a hierarchical data structure that is exposed to connected Bluetooth Low Energy (LE) devices.

GATT profiles enable extensive innovation while still maintaining full interoperability with other Bluetooth® devices. The profile describes a use case, roles and general behaviors based on the GATT functionality. Services are collections of characteristics and relationships to other services that encapsulate the behavior of part of a device. This also includes hierarchy of services, characteristics and attributes used in the attribute server. 

GATT is built on top of the Attribute Protocol (ATT) (see Bluetooth Core System Architecture for block diagram and explanations), which uses GATT data to define the way that two Bluetooth Low Energy devices send and receive standard messages. Note that GATT is not used in Bluetooth BR/EDR implementations, which use only adopted profiles.

 

PWM Output

UUID Action Char Default Value Example Remark
FFB1
(handle:
0x004D)
read
/write
1 0x01

0x00
0x01
0x02

PWM initiate with Low
PWM initiate with High
PWM initiate with current value
FFB2
(handle:
0x0050)
read
/write
4 0xFFFFFFFF

0xFF000000
0x00FF0000
0x0000FF00
0x000000FF
0x20202020

PWM1 output High
PWM2 output High
PWM3 output High
PWM4 output High
PWM1-PWM4 output 32/256 pulse
FFB3
(handle:
0x0053)
read
/write
2 0x8235 500 <= w <= 65535 PWM output Frequency, default: 0x8235 (120Hz)
FFB4
(handle:
0x0056)
read
/write
2 0x0000 0 <= t <= 65535 PWM time change, default 0x0000

 

IO Output

UUID Action Char Default Value Example Remark
FFF1
(handle:
0x0017)
read
/write
1 0b00000000

0b00000000
0bFFFFFFF
0b00000001

All off
All on
First IO on

FFF2
(handle:
0x001A)
write 1 --

--

Control IO status
FFF3
(handle:
0x001D)
Read/notify 1 0x3F 0x3F Get IO status

Specialized in Smart Wall Switches

Our Brands