Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Nodemcu Firmware
Commits
bce59831
Commit
bce59831
authored
Nov 07, 2014
by
funshine
Browse files
update readme
parent
07027385
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
bce59831
...
@@ -226,22 +226,22 @@ null
...
@@ -226,22 +226,22 @@ null
```
```
//record log to init.lua. Call the file after system restart.
//record log to init.lua. Call the file after system restart.
log.format()
log.format()
log.start
log
(“init.lua”, 1)
log.start(“init.lua”, 1)
print(“hello world”)
print(“hello world”)
log.stop
log
()
log.stop()
```
```
####See also
####See also
**-**
[
log.start
log
()
](
#lg_start
log
)
<br
/>
**-**
[
log.start()
](
#lg_start
)
<br
/>
**-**
[
log.stop
log
()
](
#lg_stop
log
)
**-**
[
log.stop()
](
#lg_stop
)
<a
id=
"lg_start
log
"
></a>
<a
id=
"lg_start"
></a>
## log.start
log
()
## log.start()
####Description
####Description
start to log input
start to log input
####Syntax
####Syntax
log.start
log
(filename, noparse)
log.start(filename, noparse)
####Parameters
####Parameters
...
@@ -256,23 +256,23 @@ null
...
@@ -256,23 +256,23 @@ null
```
```
//record log to init.lua. Call the file after system restart.
//record log to init.lua. Call the file after system restart.
log.format()
log.format()
log.start
log
(“init.lua”, 1)
log.start(“init.lua”, 1)
print(“hello world”)
print(“hello world”)
log.stop
log
()
log.stop()
//At this point, the content of init.lua is “print(“hello world”)”. When system restart, print(“hello world”) are excuted.
//At this point, the content of init.lua is “print(“hello world”)”. When system restart, print(“hello world”) are excuted.
```
```
####See also
####See also
**-**
[
log.format()
](
#lg_format
)
<br
/>
**-**
[
log.format()
](
#lg_format
)
<br
/>
**-**
[
log.stop
log
()
](
#lg_stop
log
)
**-**
[
log.stop()
](
#lg_stop
)
<a
id=
"lg_stop
log
"
></a>
<a
id=
"lg_stop"
></a>
## log.stop
log
()
## log.stop()
####Description
####Description
stop log.
stop log.
####Syntax
####Syntax
log.stop
log
()
log.stop()
####Parameters
####Parameters
null
null
...
@@ -285,15 +285,15 @@ null
...
@@ -285,15 +285,15 @@ null
```
```
//record log to init.lua. Call the file after system restart.
//record log to init.lua. Call the file after system restart.
log.format()
log.format()
log.start
log
(“init.lua”, 1)
log.start(“init.lua”, 1)
print(“hello world”)
print(“hello world”)
log.stop
log
()
log.stop()
//At this point, the content of init.lua is “print(“hello world”)”. When system restart, print(“hello world”) are excuted.
//At this point, the content of init.lua is “print(“hello world”)”. When system restart, print(“hello world”) are excuted.
```
```
####See also
####See also
**-**
[
log.format()
](
#lg_format
)
<br
/>
**-**
[
log.format()
](
#lg_format
)
<br
/>
**-**
[
log.start
log
()
](
#lg_start
log
)
**-**
[
log.start()
](
#lg_start
)
<a
id=
"lg_open"
></a>
<a
id=
"lg_open"
></a>
## log.open()
## log.open()
...
...
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