spp_server.h (2fca4dad957cd7b88f4657ed51e89c12615dda72) spp_server.h (6e46b7411f30c40b7603749c02f051634c6af1ca)
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

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

53
54/* API_START */
55
56/**
57 * @brief Create SDP record for SPP service with official SPP Service Class
58 * @param service buffer - needs to large enough
59 * @param service_record_handle
60 * @param rfcomm_channel
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

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

53
54/* API_START */
55
56/**
57 * @brief Create SDP record for SPP service with official SPP Service Class
58 * @param service buffer - needs to large enough
59 * @param service_record_handle
60 * @param rfcomm_channel
61 * @param name
61 * @param name or NULL for default value. Provide "" (empty string) to skip attribute
62 */
63void spp_create_sdp_record(uint8_t *service, uint32_t service_record_handle, int rfcomm_channel, const char *name);
64
65/**
66 * @brief Create SDP record for SPP service with custom service UUID (e.g. for use with Android)
67 * @param service buffer - needs to large enough
68 * @param service_record_handle
69 * @param service_uuid128 buffer
70 * @param rfcomm_channel
71 * @param name
72 */
73void spp_create_custom_sdp_record(uint8_t *service, uint32_t service_record_handle, const uint8_t * service_uuid128, int rfcomm_channel, const char *name);
74
75/* API_END */
76
77#if defined __cplusplus
78}
79#endif
80#endif // SPP_SERVER_H
62 */
63void spp_create_sdp_record(uint8_t *service, uint32_t service_record_handle, int rfcomm_channel, const char *name);
64
65/**
66 * @brief Create SDP record for SPP service with custom service UUID (e.g. for use with Android)
67 * @param service buffer - needs to large enough
68 * @param service_record_handle
69 * @param service_uuid128 buffer
70 * @param rfcomm_channel
71 * @param name
72 */
73void spp_create_custom_sdp_record(uint8_t *service, uint32_t service_record_handle, const uint8_t * service_uuid128, int rfcomm_channel, const char *name);
74
75/* API_END */
76
77#if defined __cplusplus
78}
79#endif
80#endif // SPP_SERVER_H