att_server.h (941a6c670c428317562e2e1a28972a69ddc04cb3) att_server.h (dc98f6d35d97a698368d294e6f39e9c9ece6764d)
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 40 unchanged lines hidden (view full) ---

49 * @brief setup ATT server
50 * @param db attribute database created by compile-gatt.ph
51 * @param read_callback, see att.h, can be NULL
52 * @param write_callback, see attl.h, can be NULL
53 */
54void att_server_init(uint8_t const * db, att_read_callback_t read_callback, att_write_callback_t write_callback);
55
56/*
1/*
2 * Copyright (C) 2014 BlueKitchen GmbH
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright

--- 40 unchanged lines hidden (view full) ---

49 * @brief setup ATT server
50 * @param db attribute database created by compile-gatt.ph
51 * @param read_callback, see att.h, can be NULL
52 * @param write_callback, see attl.h, can be NULL
53 */
54void att_server_init(uint8_t const * db, att_read_callback_t read_callback, att_write_callback_t write_callback);
55
56/*
57 * @brief register packet handler for general HCI Events like connect, diconnect, etc.
57 * @brief register packet handler for ATT server events:
58 * - ATT_EVENT_MTU_EXCHANGE_COMPLETE
59 * - ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE
58 * @param handler
59 */
60void att_server_register_packet_handler(btstack_packet_handler_t handler);
61
62/*
63 * @brief tests if a notification or indication can be send right now
64 * @return 1, if packet can be sent
65 */

--- 21 unchanged lines hidden ---
60 * @param handler
61 */
62void att_server_register_packet_handler(btstack_packet_handler_t handler);
63
64/*
65 * @brief tests if a notification or indication can be send right now
66 * @return 1, if packet can be sent
67 */

--- 21 unchanged lines hidden ---