Skip to content

Wired messages when getting new Notification #16

@Petros144

Description

@Petros144

Hi,

First, great Library.
I have a small problem with my notifications, I need more than 40 Chars in a messages and edited the ancs_base.h file like this:

// user definable variable
#define ANCS_NOTIFICATION_ATTRIBUTE_DATA_SIZE 16
#define TITLE_LEN 1 //was 16
#define LINE_SIZE 22 // was 16
#define MESSAGE_SIZE 100 //was 40

Now I can print out Longer Text´s and it consumes a LOT OF RAM!
The Downside is, that is not clearing up the old message Buffer sometimes, for example:

  1. Notification message (Old) "Hey, how are you ...."

  2. Notification message "Ebay, Your item has been shipped from the seller"

Sometimes it happens that the printed message is like this:

Prints:
"hey, how are you...shipped from the seller"

  Serial.print(notif->message);
  Serial.print('\n');

Do I need to clear the string somehow? Or do i need to add something? everything else works great.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions