Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • Using F() on println saves me about 100bytes. Executing avr-objdump as sugested I see the string of sprintf(buf, "{\"name\":\"Intervalo de Registros\",\"value\":\"%d\", \"unit\":\"C\"},", (int)settings.treg); in it. All strrings are stored in this area? Commented Jul 2, 2020 at 18:58
  • @LeandroIP: all the string literals, unless using the F() macro or, equivalently, PSTR(). Commented Jul 2, 2020 at 19:58
  • Thanks @Edgar, PSTR() solves the problem with sprintf_P. See SOLUTION in answer for details. Commented Jul 2, 2020 at 20:26