forked from guyzmo/avr_nrf_ancs_library
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
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:
-
Notification message (Old) "Hey, how are you ...."
-
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
Labels
No labels