robotastic / ANCS-Library

Library to handle ANCS notifications with an AVR and Nordic's nrf8001
53 stars 8 forks source link

Wired messages when getting new Notification #16

Open Petros144 opened 5 years ago

Petros144 commented 5 years ago

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 commented 5 years ago

anyone?

robotastic commented 5 years ago

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

Petros144 commented 5 years ago

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 commented 5 years ago

@robotastic any news :dancing_men: ?

Petros144 commented 5 years ago

+1