nrf5/bluetooth: Adding empty scan_start and scan_stop function to the bluetooth driver.

This commit is contained in:
Glenn Ruben Bakke 2017-03-12 19:50:38 +01:00
parent ee5ecac7cc
commit 471d6a05da
2 changed files with 12 additions and 0 deletions

View File

@ -661,6 +661,14 @@ void ble_drv_gatts_event_handler_set(mp_obj_t obj, ubluepy_gatts_evt_callback_t
ubluepy_gatts_event_handler = evt_handler; ubluepy_gatts_event_handler = evt_handler;
} }
void ble_drv_scan_start(void) {
}
void ble_drv_scan_stop(void) {
}
static void ble_evt_handler(ble_evt_t * p_ble_evt) { static void ble_evt_handler(ble_evt_t * p_ble_evt) {
// S132 event ranges. // S132 event ranges.
// Common 0x01 -> 0x0F // Common 0x01 -> 0x0F

View File

@ -60,4 +60,8 @@ void ble_drv_attr_write(uint16_t conn_handle, uint16_t handle, uint16_t len, uin
void ble_drv_attr_notify(uint16_t conn_handle, uint16_t handle, uint16_t len, uint8_t * p_data); void ble_drv_attr_notify(uint16_t conn_handle, uint16_t handle, uint16_t len, uint8_t * p_data);
void ble_drv_scan_start(void);
void ble_drv_scan_stop(void);
#endif // BLUETOOTH_LE_DRIVER_H__ #endif // BLUETOOTH_LE_DRIVER_H__