Personal Area Network (PAN) API
#include "src/classic/pan.h"
pan_create_panu_sdp_record
void pan_create_panu_sdp_record(uint8_t *service, uint32_t service_record_handle, uint16_t * network_packet_types, const char *name,
const char *description, security_description_t security_desc);
Creates SDP record for PANU BNEP service in provided empty buffer.
Note: Make sure the buffer is big enough.
Parameters
- service: is an empty buffer to store service record
- service_record_handle: for new service
- network_packet_types: array of types terminated by a 0x0000 entry
- name: if NULL, the default service name will be assigned
- description: if NULL, the default service description will be assigned
- security_desc
pan_create_gn_sdp_record
void pan_create_gn_sdp_record(uint8_t *service, uint32_t service_record_handle, uint16_t * network_packet_types, const char *name,
const char *description, security_description_t security_desc, const char *IPv4Subnet,
const char *IPv6Subnet);
Creates SDP record for GN BNEP service in provided empty buffer.
Note: Make sure the buffer is big enough.
Parameters
- service: is an empty buffer to store service record
- service_record_handle: for new service
- network_packet_types: array of types terminated by a 0x0000 entry
- name: if NULL, the default service name will be assigned
- description: if NULL, the default service description will be assigned
- security_desc
- IPv4Subnet: is optional subnet definition, e.g. "10.0.0.0/8"
- IPv6Subnet: is optional subnet definition given in the standard IETF format with the absolute attribute IDs
pan_create_nap_sdp_record
void pan_create_nap_sdp_record(uint8_t *service, uint32_t service_record_handle, uint16_t * network_packet_types, const char *name,
const char *description, security_description_t security_desc, net_access_type_t net_access_type,
uint32_t max_net_access_rate, const char *IPv4Subnet, const char *IPv6Subnet);
Creates SDP record for NAP BNEP service in provided empty buffer.
Note: Make sure the buffer is big enough.
Parameters
- service: is an empty buffer to store service record
- service_record_handle: for new service
- name: if NULL, the default service name will be assigned
- network_packet_types: array of types terminated by a 0x0000 entry
- description: if NULL, the default service description will be assigned
- security_desc
- net_access_type: type of available network access
- max_net_access_rate: based on net_access_type measured in byte/s
- IPv4Subnet: is optional subnet definition, e.g. "10.0.0.0/8"
- IPv6Subnet: is optional subnet definition given in the standard IETF format with the absolute attribute IDs