From 45134c203bd9dc0da04951ee7da2d26f02adf6e4 Mon Sep 17 00:00:00 2001 From: Kevin Dewald Date: Sun, 28 Jul 2024 23:21:24 -0700 Subject: [PATCH] Updated examples --- examples/simpleble/c/notify.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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]);