This commit is contained in:
divadiow
2025-08-19 07:50:37 +01:00
committed by GitHub
parent 9adcd9950f
commit e5b1b864fa
15 changed files with 19 additions and 19 deletions

View File

@@ -118,7 +118,7 @@ generateNotes:
{{/if}}
### Assets
Refer to the following table for the usage of the various assests included in this release
Refer to the following table for the usage of the various assets included in this release
| Platform | Usage | Filename |
| --- | --- | --- |
| BK7231T | OTA Update | [OpenBK7231T_{{version}}.rbl]({{host}}/{{owner}}/{{repository}}/releases/download/{{version}}/OpenBK7231T_{{version}}.rbl) |

View File

@@ -1,7 +1,7 @@
[
{
"question": "What is channel?",
"answer": "Channel is like variable, but in case of most simple devices, you can think about channels like about relay slots. If you have two relays and two buttons, and you want to link relay with button, then you just set the same channel index for given relay and button. That way you can have many buttons and relays on the same device.<br>Futhermore, channels are used to index the PWM outputs for LEDs. The expected PWM order is RGBCW (Red,Green,Blue,Cool,Warm), so you should make sure your channels order is correct if you have mixed colors.<br>Our firmware supports both numbering of channels starting with 0 and with 1.<br>Channels are set on per-pin basis in the basic Module Pins Configuration panel.<br> Some special pins might support setting two channels, for example, a Button role can have two channels set, first channel is toggled on click, second on double click.<br>"
"answer": "Channel is like variable, but in case of most simple devices, you can think about channels like about relay slots. If you have two relays and two buttons, and you want to link relay with button, then you just set the same channel index for given relay and button. That way you can have many buttons and relays on the same device.<br>Furthermore, channels are used to index the PWM outputs for LEDs. The expected PWM order is RGBCW (Red,Green,Blue,Cool,Warm), so you should make sure your channels order is correct if you have mixed colors.<br>Our firmware supports both numbering of channels starting with 0 and with 1.<br>Channels are set on per-pin basis in the basic Module Pins Configuration panel.<br> Some special pins might support setting two channels, for example, a Button role can have two channels set, first channel is toggled on click, second on double click.<br>"
},
{
"question": "What is channel type?",

View File

@@ -10,7 +10,7 @@
#
#DIRNAME=$(dirname $0);
#echo "PREBUILD script! Executed from $DIRNAME!"
# allow whitspace in file or path, so take only newline as seperator
# allow whitespace in file or path, so take only newline as seperator
#OFS=$IFS
#IFS='
#'

View File

@@ -10,7 +10,7 @@
#
#DIRNAME=$(dirname $0);
#echo "PREBUILD script! Executed from $DIRNAME!"
# allow whitspace in file or path, so take only newline as seperator
# allow whitespace in file or path, so take only newline as seperator
#OFS=$IFS
#IFS='
#'

View File

@@ -9,7 +9,7 @@
#
#DIRNAME=$(dirname $0);
#echo "PREBUILD script! Executed from $DIRNAME!"
# allow whitspace in file or path, so take only newline as seperator
# allow whitespace in file or path, so take only newline as seperator
#OFS=$IFS
#IFS='
#'

View File

@@ -9,7 +9,7 @@
#
#DIRNAME=$(dirname $0);
#echo "PREBUILD script! Executed from $DIRNAME!"
# allow whitspace in file or path, so take only newline as seperator
# allow whitespace in file or path, so take only newline as seperator
#OFS=$IFS
#IFS='
#'

View File

@@ -10,7 +10,7 @@
#
#DIRNAME=$(dirname $0);
#echo "PREBUILD script! Executed from $DIRNAME!"
# allow whitspace in file or path, so take only newline as seperator
# allow whitespace in file or path, so take only newline as seperator
#OFS=$IFS
#IFS='
#'

View File

@@ -9,7 +9,7 @@
#
#DIRNAME=$(dirname $0);
#echo "PREBUILD script! Executed from $DIRNAME!"
# allow whitspace in file or path, so take only newline as seperator
# allow whitespace in file or path, so take only newline as seperator
#OFS=$IFS
#IFS='
#'

View File

@@ -10,7 +10,7 @@
#
#DIRNAME=$(dirname $0);
#echo "PREBUILD script! Executed from $DIRNAME!"
# allow whitspace in file or path, so take only newline as seperator
# allow whitespace in file or path, so take only newline as seperator
#OFS=$IFS
#IFS='
#'

View File

@@ -10,7 +10,7 @@
#
#DIRNAME=$(dirname $0);
#echo "PREBUILD script! Executed from $DIRNAME!"
# allow whitspace in file or path, so take only newline as seperator
# allow whitespace in file or path, so take only newline as seperator
#OFS=$IFS
#IFS='
#'

View File

@@ -207,7 +207,7 @@ byte *LFS_ReadFile(const char *fname) {
lfsres = lfs_file_open(&lfs, &file, fname, LFS_O_RDONLY);
if (lfsres >= 0) {
ADDLOG_DEBUG(LOG_FEATURE_CMD, "LFS_ReadFile: openned file %s", fname);
ADDLOG_DEBUG(LOG_FEATURE_CMD, "LFS_ReadFile: opened file %s", fname);
//lfs_file_seek(&lfs,&file,0,LFS_SEEK_END);
//len = lfs_file_tell(&lfs,&file);
//lfs_file_seek(&lfs,&file,0,LFS_SEEK_SET);
@@ -220,7 +220,7 @@ byte *LFS_ReadFile(const char *fname) {
at = res;
if(res == 0) {
ADDLOG_INFO(LOG_FEATURE_CMD, "LFS_ReadFile: openned file %s but malloc failed for %i", fname, len);
ADDLOG_INFO(LOG_FEATURE_CMD, "LFS_ReadFile: opened file %s but malloc failed for %i", fname, len);
} else {
#if 0
char buffer[32];
@@ -287,7 +287,7 @@ int LFS_WriteFile(const char *fname, const byte *data, int len, bool bAppend) {
}
if (lfsres >= 0) {
ADDLOG_DEBUG(LOG_FEATURE_CMD, "LFS_ReadFile: openned file %s", fname);
ADDLOG_DEBUG(LOG_FEATURE_CMD, "LFS_ReadFile: opened file %s", fname);
lfsres = lfs_file_write(&lfs, &file, data, len);
lfs_file_close(&lfs, &file);
@@ -324,7 +324,7 @@ static commandResult_t cmnd_lfsexec(const void * context, const char *cmd, const
}
lfsres = lfs_file_open(&lfs, file, fname, LFS_O_RDONLY);
if (lfsres >= 0) {
ADDLOG_DEBUG(LOG_FEATURE_CMD, "openned file %s", fname);
ADDLOG_DEBUG(LOG_FEATURE_CMD, "opened file %s", fname);
do {
char *p = line;
do {

View File

@@ -105,7 +105,7 @@ static void CMD_ServerThread( beken_thread_arg_t arg )
}
if ( err != kNoErr )
ADDLOG_ERROR(LOG_FEATURE_CMD, "Server listerner thread exit with err: %d", err );
ADDLOG_ERROR(LOG_FEATURE_CMD, "Server listener thread exit with err: %d", err );
lwip_close( tcp_listen_fd );

View File

@@ -250,7 +250,7 @@ static commandResult_t cmnd_lfs_test1(const void * context, const char *cmd, con
ADDLOG_INFO(LOG_FEATURE_CMD, "cmnd_lfs_test1: sizeof(lfs_file_t) %i", sizeof(lfs_file_t));
if (lfsres >= 0) {
ADDLOG_INFO(LOG_FEATURE_CMD, "cmnd_lfs_test1: openned file %s", args);
ADDLOG_INFO(LOG_FEATURE_CMD, "cmnd_lfs_test1: opened file %s", args);
do {
lfsres = lfs_file_read(&lfs, &file, &a, 1);
cnt++;
@@ -291,7 +291,7 @@ static commandResult_t cmnd_lfs_test2(const void * context, const char *cmd, con
ADDLOG_INFO(LOG_FEATURE_CMD, "cmnd_lfs_test2: sizeof(lfs_file_t) %i", sizeof(lfs_file_t));
if (lfsres >= 0) {
ADDLOG_INFO(LOG_FEATURE_CMD, "cmnd_lfs_test2: openned file %s", args);
ADDLOG_INFO(LOG_FEATURE_CMD, "cmnd_lfs_test2: opened file %s", args);
do {
lfsres = lfs_file_read(&lfs, file, &a, 1);
cnt++;

View File

@@ -3310,7 +3310,7 @@ int http_fn_ota(http_request_t* request) {
#ifdef OBK_OTA_NAME_EXTENSION
OBK_OTA_NAME_EXTENSION
#endif
OBK_OTA_EXTENSION "/,SR=R.source,mr=(e)=>e.name.match(R);doota=()=>{f=o.files[0];if(f&&(f)){d.showModal();var t=30;setTimeout(()=>{d.close(),location.href='/'},1e3*t),setInterval(()=>d.innerHTML=D+t--+' secs',1e3),fetch('/api/ota',{method:'POST',body:f}).then((e)=>{e.ok&&fetch('/index?restart=1')})}else alert(f?'filename invalid':'no file selected')};d.innerHTML=D,o.addEventListener('change',((e)=>{const t=e.target.files[0];if(!t)return;h.innerHTML=mr(t)?'':'Selected file does <b>not</b> match reqired format '+SR+'!'}))</script>";
OBK_OTA_EXTENSION "/,SR=R.source,mr=(e)=>e.name.match(R);doota=()=>{f=o.files[0];if(f&&(f)){d.showModal();var t=30;setTimeout(()=>{d.close(),location.href='/'},1e3*t),setInterval(()=>d.innerHTML=D+t--+' secs',1e3),fetch('/api/ota',{method:'POST',body:f}).then((e)=>{e.ok&&fetch('/index?restart=1')})}else alert(f?'filename invalid':'no file selected')};d.innerHTML=D,o.addEventListener('change',((e)=>{const t=e.target.files[0];if(!t)return;h.innerHTML=mr(t)?'':'Selected file does <b>not</b> match required format '+SR+'!'}))</script>";
poststr(request, "<br><br><br>Expert feature: Upload firmware OTA file.<br>If unsure, please use Web App!<br><span id='hint' style='color: yellow;'></span><br><br>");
poststr(request, "<input id='otafile' type='file' accept='" OBK_OTA_EXTENSION "'>");

View File

@@ -228,7 +228,7 @@ static void tcp_server_thread(beken_thread_arg_t arg)
}
if (err != kNoErr)
ADDLOG_ERROR(LOG_FEATURE_HTTP, "Server listerner thread exit with err: %d", err);
ADDLOG_ERROR(LOG_FEATURE_HTTP, "Server listener thread exit with err: %d", err);
lwip_close(tcp_listen_fd);