SDP Server API

#include "src/classic/sdp_server.h"

sdp_init

void sdp_init(void);

Set up SDP Server.

Source


sdp_register_service

uint8_t sdp_register_service(const uint8_t * record);

Register Service Record with database using ServiceRecordHandle stored in record

@pre: AttributeIDs are in ascending order

@pre: ServiceRecordHandle is first attribute and valid

Parameters

Returns

Source


sdp_unregister_service

void sdp_unregister_service(uint32_t service_record_handle);

Unregister service record internally.

Source


sdp_get_service_record_handle

uint32_t sdp_get_service_record_handle(const uint8_t * record);

gets service record handle from record

@resutl: service record handle or 0

Returns

Source


sdp_create_service_record_handle

uint32_t sdp_create_service_record_handle(void);

Finds an unused valid service record handle

Returns

Source


sdp_get_record_for_handle

const uint8_t * sdp_get_record_for_handle(uint32_t handle);

gets record for handle

Returns

Source


sdp_deinit

void sdp_deinit(void);

De-Init SDP Server

Source