Replies: 6 comments 4 replies
-
You should know about SSL client memory usage and heap options in esp8266 |
Beta Was this translation helpful? Give feedback.
-
Ok, I'm trying to simplify as much as possible in order to consume less memory. I declared the privete key, etc. as const, removed the code part to get the FCM token (I use it statically for the test) and focus the code only to authenticate with ServiceAuth and send push notication, this is my code now:
I run sendPushNotification() on a long button click and on execution the esp8266 still crash and get this output on Serial monitor:
What else I need to do ? |
Beta Was this translation helpful? Give feedback.
-
As you see the debug info before device crashed.
Care should be taken when working with The internal processes for authentication with It uses 3k by This is the result that you have only 800 bytes of stack for use that is why I mentioned about. This is the important information about ESP8266 stack memory restriction. For your application. it is not necessary to call When you are working with different After the Then you have to manage your memory usage (stack/heap) carefully when working with Another option is to edit the ESP8266 Core source to increase the stack size. |
Beta Was this translation helpful? Give feedback.
-
To measure the stack. To repaint the stack high watermark |
Beta Was this translation helpful? Give feedback.
-
You should know that the credentials taken by The Why don't define |
Beta Was this translation helpful? Give feedback.
-
I got it, thanks for your precious informations! |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm trying to implement this function:
But when execute it I obtain this in the Arduino IDE serial monitor:
And then the ESP8266 crash and restart, the code apparently stop and crash after executing the second
authHandler();
right after theServiceAuth
authentication.Probably I'm doing something wrong but I can't understand where. I'm trying to mix the Realtime DB sync example with Cloud messaging sync example.
Beta Was this translation helpful? Give feedback.
All reactions