example/pan_lwip_http_server: set CoD to Networking/Network Access Point

This commit is contained in:
Matthias Ringwald 2019-12-03 10:57:21 +01:00
parent 4251aeec03
commit c10be05f57

View File

@ -166,6 +166,9 @@ static void pan_bnep_setup(void){
gap_set_local_name("PAN HTTP 00:00:00:00:00:00"); gap_set_local_name("PAN HTTP 00:00:00:00:00:00");
gap_discoverable_control(1); gap_discoverable_control(1);
// Major: Networking Device, Minor: Networ Access Point
gap_set_class_of_device(0x20300);
// register for HCI events // register for HCI events
hci_event_callback_registration.callback = &packet_handler; hci_event_callback_registration.callback = &packet_handler;
hci_add_event_handler(&hci_event_callback_registration); hci_add_event_handler(&hci_event_callback_registration);