Commit d96d7f23 authored by Marcel Stör's avatar Marcel Stör Committed by GitHub
Browse files

Document node.flashsize(), fixes #1510 (#1511)

parent 3007b33a
...@@ -136,6 +136,19 @@ none ...@@ -136,6 +136,19 @@ none
#### Returns #### Returns
flash ID (number) 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() ## node.heap()
Returns the current available heap size in bytes. Note that due to fragmentation, actual allocations of this size may not be possible. Returns the current available heap size in bytes. Note that due to fragmentation, actual allocations of this size may not be possible.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment