dotstack API Reference
1.10.37
|
This module describes parameters used to configure ATT server layer. More...
Macros | |
#define | ATT_MAX_CLIENTS |
Maximum number of clients. More... | |
#define | ATT_MAX_FOUND_ATTRIBUTES |
Maximum number of attributes that can be returned in one multi-attribute response. More... | |
#define | ATT_MAX_QUEUED_WRITE_BUFFER_SIZE 0 |
Size of the buffer for storing queued writes. More... | |
This module describes parameters used to configure ATT server layer.
dotstack is customized using a configuration file. The configuration file tailors the dotstack to the application being built. It has to have the structure shown below.
#define ATT_MAX_CLIENTS |
Maximum number of clients.
This parameter defines the maximum number of clients that can be simultaneously connected to the server. If ATT is used only over LE this number must be set to 1. Any other numbers will be a waste of RAM because an LE slave (server) can have only one connection to a master (client) at any given moment.
#define ATT_MAX_FOUND_ATTRIBUTES |
Maximum number of attributes that can be returned in one multi-attribute response.
This parameter defines the maximum number of attributes that can be returned in one multi-attribute response. The minimum value is 1. The maximum value is 255. This number must be set to as large value as possible (given there is enough RAM) to minimize the number of request needed by the client to find all requested attributes.
#define ATT_MAX_QUEUED_WRITE_BUFFER_SIZE 0 |
Size of the buffer for storing queued writes.
This parameter defines the Size of the buffer for storing queued writes. The minimum value is 0. The maximum value is 65535. If this is set to 0 queued writes will not be supported.