Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
d96d7f23
Commit
d96d7f23
authored
Oct 01, 2016
by
Marcel Stör
Committed by
GitHub
Oct 01, 2016
Browse files
Document node.flashsize(), fixes #1510 (#1511)
parent
3007b33a
Changes
1
Hide whitespace changes
Inline
Side-by-side
docs/en/modules/node.md
View file @
d96d7f23
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment