ANCS-Library
ANCS-Library copied to clipboard
Wired messages when getting new Notification
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.
anyone?
Unforunately I haven't touched this code in years. What HW do you have it up and running on? I should probably try to poke at it...
Yeah! somone with a helping hand!
I have the NRF8001 connected to a Arduino Pro micro that sends the Notification data via Serial Port to the ESP32 and displays it on a TFT Display
unfortunately the Library is not ported to the ESP32 (EEPROM /NVS Problem ).
@robotastic any news :dancing_men: ?
+1