Air pressure project code too large

8 years 10 months ago - 8 years 10 months ago #1754 by Oggie1980
I have just started my first project. I am using a Pro mini, 3.3v ATmega 328 board. When I write the code I get the following error.

Sketch uses 23,458 bytes (76%) of program storage space. Maximum is 30,720 bytes.
Global variables use 2,134 bytes (104%) of dynamic memory, leaving -86 bytes for local variables. Maximum is 2,048 bytes.

Is there anything I can edit out?

Please Log in or Create an account to join the conversation.

8 years 10 months ago #1755 by EasyIoT

Oggie1980 wrote: I have just started my first project. I am using a Pro mini, 3.3v ATmega 328 board. When I write the code I get the following error.

Sketch uses 23,458 bytes (76%) of program storage space. Maximum is 30,720 bytes.
Global variables use 2,134 bytes (104%) of dynamic memory, leaving -86 bytes for local variables. Maximum is 2,048 bytes.

Is there anything I can edit out?


Did you try to disable debug in Esp8266EasyIoTConfig.h?

Please Log in or Create an account to join the conversation.

8 years 10 months ago - 8 years 10 months ago #1757 by Oggie1980
Thanks for the quick reply.

This is the first time using Arduino.

I've not tried anything yet. Do I just delete the line?

Another quick question. Is the port setting 1301 or 80 that needs setting in the flie?

Thanks again

Please Log in or Create an account to join the conversation.

8 years 10 months ago - 8 years 10 months ago #1758 by Oggie1980
I have just tried deleting debug the line in Esp8266EasyIotConfig.h but I am still getting the same message. It is still 104% so it doesn't appear to have saved any space.

I have also noticed that the pro mini does not use the serial1 command so I have removed both references to it in the esp8266_pressure program. was this the correct thing to do?

Please Log in or Create an account to join the conversation.

8 years 10 months ago - 8 years 10 months ago #1767 by EasyIoT

Oggie1980 wrote: I have just tried deleting debug the line in Esp8266EasyIotConfig.h but I am still getting the same message. It is still 104% so it doesn't appear to have saved any space.

I have also noticed that the pro mini does not use the serial1 command so I have removed both references to it in the esp8266_pressure program. was this the correct thing to do?


Try @cdj's trick in his relay example to instantiate message only when you need it.
The following user(s) said Thank You: cdj

Please Log in or Create an account to join the conversation.

Time to create page: 0.305 seconds

Forum latest

  • No posts to display.