nrf5/modules: Updating method documentation in ubluepy peripheral and service.
This commit is contained in:
parent
655d6c9bcd
commit
71475bb028
|
@ -196,7 +196,7 @@ STATIC mp_obj_t peripheral_disconnect(mp_obj_t self_in) {
|
|||
STATIC MP_DEFINE_CONST_FUN_OBJ_1(ubluepy_peripheral_disconnect_obj, peripheral_disconnect);
|
||||
|
||||
/// \method addService(Service)
|
||||
/// Get all service registered in the Peripheral.
|
||||
/// Add service to the Peripheral.
|
||||
///
|
||||
STATIC mp_obj_t peripheral_add_service(mp_obj_t self_in, mp_obj_t service) {
|
||||
ubluepy_peripheral_obj_t * self = MP_OBJ_TO_PTR(self_in);
|
||||
|
@ -211,7 +211,7 @@ STATIC mp_obj_t peripheral_add_service(mp_obj_t self_in, mp_obj_t service) {
|
|||
STATIC MP_DEFINE_CONST_FUN_OBJ_2(ubluepy_peripheral_add_service_obj, peripheral_add_service);
|
||||
|
||||
/// \method getServices()
|
||||
/// disconnect connection.
|
||||
/// Return list with all service registered in the Peripheral.
|
||||
///
|
||||
STATIC mp_obj_t peripheral_get_services(mp_obj_t self_in) {
|
||||
ubluepy_peripheral_obj_t * self = MP_OBJ_TO_PTR(self_in);
|
||||
|
|
|
@ -86,7 +86,7 @@ STATIC mp_obj_t ubluepy_service_make_new(const mp_obj_type_t *type, size_t n_arg
|
|||
return MP_OBJ_FROM_PTR(s);
|
||||
}
|
||||
|
||||
/// \method addCharacteristic(Service)
|
||||
/// \method addCharacteristic(Characteristic)
|
||||
/// Add Characteristic to the Service.
|
||||
///
|
||||
STATIC mp_obj_t service_add_characteristic(mp_obj_t self_in, mp_obj_t characteristic) {
|
||||
|
|
Loading…
Reference in New Issue