What is a handle in respect to a GATT server?

What is a handle in respect to a GATT server? Each attribute on a GATT server has a 16 bit identifier known as its handle. The handle makes the attribute addressable and can be thought of as a pointer to the attributes location on the server. Handles do not change during a connection and with bonded device between connections. Note that some devices such as smartphones may cache attributes between connections which could lead to confusion should a devices GATT server services and characteristics be changed, for example when loading a new smartbasic program. In such circumstances it is advisable to remove any bonds which will clear any cached attributes.