Skip to content

Commit

Permalink
Adjust examples to changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MathewHDYT committed Sep 15, 2023
1 parent 04f08e9 commit 63b029f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ void processSharedAttributeUpdate(const Shared_Attribute_Data &data) {
Serial.println(buffer);
}

const Shared_Attribute_Callback callback(SUBSCRIBED_SHARED_ATTRIBUTES.cbegin(), SUBSCRIBED_SHARED_ATTRIBUTES.cend(), processSharedAttributeUpdate);
const Shared_Attribute_Callback callback(&processSharedAttributeUpdate, SUBSCRIBED_SHARED_ATTRIBUTES.cbegin(), SUBSCRIBED_SHARED_ATTRIBUTES.cend());

void setup() {
// Initalize serial connection for debugging
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ void processClientAttributeRequest(const Shared_Attribute_Data &data) {
Serial.println(buffer);
}

const Attribute_Request_Callback sharedCallback(REQUESTED_SHARED_ATTRIBUTES.cbegin(), REQUESTED_SHARED_ATTRIBUTES.cend(), &processSharedAttributeRequest);
const Attribute_Request_Callback clientCallback(REQUESTED_CLIENT_ATTRIBUTES.cbegin(), REQUESTED_CLIENT_ATTRIBUTES.cend(), &processClientAttributeRequest);
const Attribute_Request_Callback sharedCallback(&processSharedAttributeRequest, REQUESTED_SHARED_ATTRIBUTES.cbegin(), REQUESTED_SHARED_ATTRIBUTES.cend());
const Attribute_Request_Callback clientCallback(&processClientAttributeRequest, REQUESTED_CLIENT_ATTRIBUTES.cbegin(), REQUESTED_CLIENT_ATTRIBUTES.cend());

void setup() {
// Initalize serial connection for debugging
Expand Down

0 comments on commit 63b029f

Please sign in to comment.