nrf5/bluetooth: Removing advertise from ble module. Removing help text as well.

This commit is contained in:
Glenn Ruben Bakke 2017-04-02 16:14:48 +02:00
parent c8097eb470
commit c7f0069aac
2 changed files with 0 additions and 10 deletions

View File

@ -36,7 +36,6 @@
"available:\n" \
" ble.enable() -- enable softdevice\n" \
" ble.disable() -- disable softdevice\n" \
" ble.advertise() -- Start advertising Eddystone beacon\n" \
"\n"
#else

View File

@ -67,18 +67,10 @@ mp_obj_t ble_obj_address_print(void) {
return mp_const_none;
}
/// \method advertise()
/// Bluetooth Low Energy advertise.
mp_obj_t ble_obj_advertise(void) {
ble_drv_advertise();
return mp_const_none;
}
STATIC MP_DEFINE_CONST_FUN_OBJ_0(ble_obj_enable_obj, ble_obj_enable);
STATIC MP_DEFINE_CONST_FUN_OBJ_0(ble_obj_disable_obj, ble_obj_disable);
STATIC MP_DEFINE_CONST_FUN_OBJ_0(ble_obj_enabled_obj, ble_obj_enabled);
STATIC MP_DEFINE_CONST_FUN_OBJ_0(ble_obj_address_print_obj, ble_obj_address_print);
STATIC MP_DEFINE_CONST_FUN_OBJ_0(ble_obj_advertise_obj, ble_obj_advertise);
STATIC const mp_map_elem_t ble_module_globals_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_OBJ_NEW_QSTR(MP_QSTR_ble) },
@ -86,7 +78,6 @@ STATIC const mp_map_elem_t ble_module_globals_table[] = {
{ MP_OBJ_NEW_QSTR(MP_QSTR_disable), (mp_obj_t)&ble_obj_disable_obj},
{ MP_OBJ_NEW_QSTR(MP_QSTR_enabled), (mp_obj_t)&ble_obj_enabled_obj},
{ MP_OBJ_NEW_QSTR(MP_QSTR_address_print), (mp_obj_t)&ble_obj_address_print_obj},
{ MP_OBJ_NEW_QSTR(MP_QSTR_advertise), (mp_obj_t)&ble_obj_advertise_obj},
};