diff --git a/examples/simpleble/c/notify.c b/examples/simpleble/c/notify.c index 300afb45..6fd7c4f8 100644 --- a/examples/simpleble/c/notify.c +++ b/examples/simpleble/c/notify.c @@ -30,8 +30,8 @@ static void clean_on_exit(void); static void adapter_on_scan_start(simpleble_adapter_t adapter, void* userdata); static void adapter_on_scan_stop(simpleble_adapter_t adapter, void* userdata); static void adapter_on_scan_found(simpleble_adapter_t adapter, simpleble_peripheral_t peripheral, void* userdata); -static void peripheral_on_notify(simpleble_uuid_t service, simpleble_uuid_t characteristic, const uint8_t* data, - size_t data_length, void* userdata); +static void peripheral_on_notify(simpleble_peripheral_t handle, simpleble_uuid_t service, simpleble_uuid_t characteristic, + const uint8_t* data, size_t data_length, void* userdata); static service_characteristic_t characteristic_list[SERVICES_LIST_SIZE] = {0}; static simpleble_peripheral_t peripheral_list[PERIPHERAL_LIST_SIZE] = {0}; @@ -205,8 +205,8 @@ static void adapter_on_scan_found(simpleble_adapter_t adapter, simpleble_periphe simpleble_free(peripheral_address); } -static void peripheral_on_notify(simpleble_uuid_t service, simpleble_uuid_t characteristic, const uint8_t* data, - size_t data_length, void* userdata) { +static void peripheral_on_notify(simpleble_peripheral_t handle, simpleble_uuid_t service, simpleble_uuid_t characteristic, + const uint8_t* data, size_t data_length, void* userdata) { printf("Received: "); for (size_t i = 0; i < data_length; i++) { printf("%02X ", data[i]);