ANCS-Library icon indicating copy to clipboard operation
ANCS-Library copied to clipboard

Wired messages when getting new Notification

Open Petros144 opened this issue 6 years ago • 5 comments

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.

Petros144 avatar Jan 22 '19 21:01 Petros144

anyone?

Petros144 avatar Mar 18 '19 19:03 Petros144

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...

robotastic avatar Mar 19 '19 00:03 robotastic

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 ).

Petros144 avatar Mar 19 '19 15:03 Petros144

@robotastic any news :dancing_men: ?

Petros144 avatar Apr 01 '19 19:04 Petros144

+1

Petros144 avatar May 04 '19 16:05 Petros144