Skip to content

Commit 320372f

Browse files
authored
Update Commands.md
Making it clear that the Br command is for Berry cocde
1 parent c32eb44 commit 320372f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Commands.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ Backlog2<a class="cmnd" id="backlog2"></a>|Like `Backlog0`, but without result p
130130
Backlog3<a class="cmnd" id="backlog3"></a>|Like `Backlog`, but without result published, same as prefixing all the commands with `_`
131131
BlinkCount<a class="cmnd" id="blinkcount"></a>|Number of relay toggles ([blinks](#power)) _(does not control the status LED)_<BR> `0` = blink many times before restoring power state <BR> `1..32000` = set number of blinks *(default = `10`)*
132132
BlinkTime<a class="cmnd" id="blinktime"></a>|`2..3600` set duration, in 0.1 second increments, to [blink](#power) aka toggle Power _(does not control the status LED)_
133-
Br<a class="cmnd" id="br"></a>|Run the code from the console<BR>Example to download a file from a remote server into filesystem:<BR>`br def urlfetch(url,file); if file==nil; import string; file=string.split(url,'/').pop(); end; var wc=webclient(); wc.begin(url); var st=wc.GET(); if st!=200 raise 'connection_error','status: '+str(st) end; st='Fetched '+str(wc.write_file(file)); print(url,st); wc.close(); return st; end; urlfetch('https://raw.githubusercontent.com/arendst/Tasmota/development/tasmota/zigbee/giex_water.zb')`
133+
Br<a class="cmnd" id="br"></a>|Run [Berry](https://tasmota.github.io/docs/Berry/) code from the console<BR>Example to download a file from a remote server into filesystem:<BR>`br def urlfetch(url,file); if file==nil; import string; file=string.split(url,'/').pop(); end; var wc=webclient(); wc.begin(url); var st=wc.GET(); if st!=200 raise 'connection_error','status: '+str(st) end; st='Fetched '+str(wc.write_file(file)); print(url,st); wc.close(); return st; end; urlfetch('https://raw.githubusercontent.com/arendst/Tasmota/development/tasmota/zigbee/giex_water.zb')`
134134
BrRestart<a class="cmnd" id="brrestart"></a>|Restart the Berry VM. [read more...](https://tasmota.github.io/docs/Berry/#iterate-without-rebooting)
135135
ButtonDebounce<a class="cmnd" id="buttondebounce"></a>|User control over button debounce timing <BR>`40..1000` = set button debounce time in milliseconds *(default = `50`)*
136136
Buzzer<a class="cmnd" id="buzzer"></a>|`0` = stop active buzzer cycle<BR>`<count>,<beep>,<silence>,<tune>` = [read more...](Buzzer)<BR>`2,3` = Beep twice with 300 milliseconds duration and 100 milliseconds pause<BR>`2,3,4` = Beep twice with 300 milliseconds duration and 400 milliseconds pause<BR>`1,2,3,0xF54` (0000 0000 0000 0000 0000 1111 0101 0100). Each `1` bit beeps for 200 milliseconds and each bounded `0` bit pauses for 300 milliseconds<BR>`-1` = infinite mode<BR>`-2` = follow LED mode

0 commit comments

Comments
 (0)