Skip to content

Commit

Permalink
Updated examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kdewald committed Jul 29, 2024
1 parent 9603886 commit 45134c2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/simpleble/c/notify.c
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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]);
Expand Down

0 comments on commit 45134c2

Please sign in to comment.