spp_flowcontrol.c (2fca4dad957cd7b88f4657ed51e89c12615dda72) spp_flowcontrol.c (8c9bb29ec24759ba592d72f79417df812fd8a97f)
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

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

195
196
197int btstack_main(int argc, const char * argv[]);
198int btstack_main(int argc, const char * argv[]){
199
200 (void)argc;
201 (void)argv;
202
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

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

195
196
197int btstack_main(int argc, const char * argv[]);
198int btstack_main(int argc, const char * argv[]){
199
200 (void)argc;
201 (void)argv;
202
203 l2cap_init();
204
205#ifdef ENABLE_BLE
206 // Initialize LE Security Manager. Needed for cross-transport key derivation
207 sm_init();
208#endif
209
203 spp_service_setup();
204 one_shot_timer_setup();
205
206 puts("SPP FlowControl Demo: simulates processing on received data...\n\r");
207 gap_set_local_name("SPP Flowcontrol 00:00:00:00:00:00");
208 gap_discoverable_control(1);
209
210 // short-cut to find other SPP Streamer
211 gap_set_class_of_device(TEST_COD);
212
213 // turn on!
214 hci_power_control(HCI_POWER_ON);
215
216 return 0;
217}
218/* EXAMPLE_END */
219
220
210 spp_service_setup();
211 one_shot_timer_setup();
212
213 puts("SPP FlowControl Demo: simulates processing on received data...\n\r");
214 gap_set_local_name("SPP Flowcontrol 00:00:00:00:00:00");
215 gap_discoverable_control(1);
216
217 // short-cut to find other SPP Streamer
218 gap_set_class_of_device(TEST_COD);
219
220 // turn on!
221 hci_power_control(HCI_POWER_ON);
222
223 return 0;
224}
225/* EXAMPLE_END */
226
227