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

This commit is contained in:
Marcel Stör 2016-10-01 13:44:24 +02:00 committed by GitHub
parent 3007b33a0b
commit d96d7f237f
1 changed files with 13 additions and 0 deletions

View File

@ -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.