From d96d7f237f49d6599c87304480396738c9c6c7c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20St=C3=B6r?= Date: Sat, 1 Oct 2016 13:44:24 +0200 Subject: [PATCH] Document node.flashsize(), fixes #1510 (#1511) --- docs/en/modules/node.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/en/modules/node.md b/docs/en/modules/node.md index 431a5ef9..3da196b4 100644 --- a/docs/en/modules/node.md +++ b/docs/en/modules/node.md @@ -136,6 +136,19 @@ none #### Returns flash ID (number) +## node.flashsize() + +Returns the flash chip size in bytes. On 4MB modules like ESP-12 the return value is 4194304 = 4096KB. + +#### Syntax +`node.flashsize()` + +#### Parameters +none + +#### Returns +flash size in bytes (integer) + ## node.heap() Returns the current available heap size in bytes. Note that due to fragmentation, actual allocations of this size may not be possible.