Commit Graph

216 Commits

Author SHA1 Message Date
e85b9a67be small update (#1786) 2025-09-05 08:58:42 +02:00
0d007112b1 TXW817 support (#1779)
* txw81x base no makefile

* txw81x

* gpio fix?

* non-working ota

* mic
2025-09-03 11:46:06 +02:00
e5b1b864fa spellings (#1767) 2025-08-19 08:50:37 +02:00
9adcd9950f Realtek/BL602 spi led (#1763)
* realtek spi led

* fix RTL_A and RTL_B

* fix esp version

* Update docs
add missing esp8266 pins

* bl602 spi led

* fix

* deinit

* bl602 miso swap
2025-08-18 20:37:18 +02:00
b8965817f6 bl602 deep sleep & ecr sdk update (#1743)
* bl602 deep sleep & ecr sdk update

* esp8266 disable wpa3

* platforms.md
2025-08-10 17:08:33 +02:00
aaaa95a8d1 correct spelling and grammar (#1747)
* Update http_fns.c

* Update flags.json

* Update flags.md

* Update selftest_mqtt_get.c

* Update flags.md

* Update flags.json

* Update http_fns.c

* Update user_main.c

* Update drv_ir_new.cpp

* Update subpages.json

* Update flags.json

* Update http_fns.c

* Update flags.md

* Update tcpServer.md

* Update hal_flashConfig.h

* Update flash_pub.h

* Update win_flash_stub.c

* Update hal_flashConfig_bk7231.c
2025-08-10 08:46:49 +02:00
3ccd7c293c Platforms.md WPA3 updates (#1754)
* Update drv_ir_new.cpp

* Update hass.h - add missing  "hass_init_textField_info()" to avoid breaking ESP builds 

ESP builds with "-Werror=implicit-function-declaration", so we get

 error: implicit declaration of function 'hass_init_textField_info';

* Update platforms.md - wpa3

* Update platforms.md

* revert ameba1 wpa3 to unknown

---------

Co-authored-by: MaxineMuster <146550015+MaxineMuster@users.noreply.github.com>
2025-08-10 08:45:57 +02:00
afdf4b5cb5 Update platforms.md (#1735) 2025-07-21 15:10:34 +02:00
8b7cf56731 update platforms.md (#1730)
* Update platforms.md

* Update platforms.md

* Update platforms.md

* Update platforms.md

* Update platforms.md

* Update platforms.md

* Update platforms.md

* Update platforms.md

* Update platforms.md

* Update platforms.md
2025-07-20 09:19:16 +02:00
901295154a Create platforms.md 2025-07-19 16:26:32 +02:00
b6e9862563 autoexecExamples.md: Use C++ higlighting (#1687)
* Run getcommands.js through a linter

* Use C++ higlighting for autoexec.bat examples
2025-06-24 17:08:35 +02:00
b02068e485 docs refresh 2025-06-17 18:01:35 +02:00
8ac653b89a Update safeMode.md (#1599) 2025-04-11 08:51:52 +02:00
7e1afd0fdf [POC] Run berry-lang (#1544)
* setChannel(ch, v) in Berry

* try

* t2

* b

* fx

* update to berry with autogenerated files

* Add debug to find out whether the submodule is really checked out

* Revert "Add debug to find out whether the submodule is really checked out"

This reverts commit 40ec2f6677.

* Add src/berry checkout to every build

* berry separate file p1

* #define ENABLE_OBK_BERRY 1 on Beken only

* Compile in obkSimulator

Compiles, but crashes in parser.
Seems like the Berry code has not been tested under MSVC2017.

* Checkout with submodules in obkSimulator workflow

* berry with ffs msvc fix

* berry autogen fiasco fix

* OpenBK7231T compiles from official berry, handle prebuild

Breaks obkSimulator

* Fix botched rebase on .gitmodules

* Build in msvc with a berry prebuild step (requires python)

* MSVC: also extend include directories for Release

* Fix BK723x build, extract common berry build rules into berry.mk

* Fix OpenBL602 build

This doesn't actually compile berry for OpenBL602, but makes compile
errors go away and marks where further work will be needed.

* working delayMs

Test Plan:
```
berry state = 1; var tick; def tick() state = 1 - state; channelSet(1, state); delayMs(1000, tick); end; tick();
```
can be stopped with `stopAllScripts`

* only use os_realloc on PLATFORM_BK7231T

* Move as much berry logic as possible out of cmd_script

* Guard more with ENABLE_OBK_BERRY

* upload script

* file operations & working import

* enough to implement "Advanced turn off after time with timer on UI and timer setting on UI and kept in flash"

* experiments

* clang-format -i src/berry/be_*.{h,c} src/cmnds/cmd_berry.c

* Remove redundant hfile != NULL

Calling with hfile == NULL would be bug in some other part of the code

* Don't checkout other submodules for simulator build

* remove stray debug & .user files

* Use be_newcomobj

* Build sim on linux

* build linux sim [2]

* threads & tests

* Leave enabled on Windows, disable on BEKEN

* SIM_RunWindow fix?

* allow "startScript test.be" as a shorthand for "berry import test" ??

* test?

* fix /

* test arg

* test2

* test

* test add

* fx

* test

* just checking if i can use import without module?

* test with module

* CMD_StopBerry fix?

* run obk command from berry? probably not good idea due to the stack size, will delay execution later?

* str arg

* test to see if i have to repeat import

* submit unfinished code

* concat tst

* more tests

* fix copy/paste mistake, add fib test

* fx

* channelSet

* fx

* try

* tester.fib(11)

* rename

---------

Co-authored-by: Tester23 <85486843+openshwprojects@users.noreply.github.com>
Co-authored-by: NonPIayerCharacter <18557343+NonPIayerCharacter@users.noreply.github.com>
2025-03-30 20:37:37 +02:00
86fbfe90e0 Mqtt-mbedtls (#960)
* Update package.json

Update repo url for build

* MQTT over TLS first build

* MQTT TLS boot ok

* Funcional version MQTT secure TLS

* Add option for mqtt to use tls in web config

* Versao funcional pendente otimizacao de rom

* Versao funcional com verify certificate disabled

* Adicao de informacoes para debug

* Versao funcional com verificacao do certificado

* Otimizacoes de rom e heap usage

* Versao com webserver enable/disable

* Versao boa para mqtt mbedtls boa uso

* Invert CFG enable_web_server to disable_web_server

* MQTT over TLS first build

* MQTT TLS boot ok

* Funcional version MQTT secure TLS

* Add option for mqtt to use tls in web config

* Versao funcional pendente otimizacao de rom

* Versao funcional com verify certificate disabled

* Adicao de informacoes para debug

* Versao funcional com verificacao do certificado

* Otimizacoes de rom e heap usage

* Versao com webserver enable/disable

* Versao boa para mqtt mbedtls boa uso

* Invert CFG enable_web_server to disable_web_server

* Same documentation

* Rever submodulos configuration

* Rever ignore submodules

Rever ignore submodules

* Fix for git actions

* Fix build start_type_pub only in platform Beken

* Fix build git w600

* Fix BL602 build

* Remove format only changes

* Delete src/driver/drv_ir.cpp

Space changes only

* Updates to pull request

* Revert space only changes

* Change cfg bool to byte and some documentation

* Fix get initial time from compile time

* Fix base64.c duplicate module

* Fix base64.c duplicate module for git workflow

* Fix strange behavior on BK7231n. Connection completed only in the second callback WIFI_STA_CONNECTED

* MQTT-MBEDTLS default disable

* Fix SERIOUS bug breaking all platforms except BK7231N (did you want to set g_bHasWiFiConnected  in #else?)

---------

Co-authored-by: Tester23 <85486843+openshwprojects@users.noreply.github.com>
2025-03-05 19:27:51 +01:00
cbc7995f62 docs 2024-12-24 18:37:01 +01:00
d34cd4256c docs 2024-12-24 18:31:46 +01:00
955677f913 docs 2024-12-24 15:43:20 +01:00
bba5382d7c docs 2024-12-24 15:22:25 +01:00
f971f823ea docs 2024-12-24 15:17:47 +01:00
b2bc6afa7c docs 2024-10-10 14:18:47 +02:00
9415b4f374 tuyamcu sending autoexec sample 2024-10-10 13:30:21 +02:00
831b896650 refresh docs 2024-09-14 02:50:50 +02:00
989ac1eb46 Add flag to hide ON / OFF values on GUI (showing only green / red buttons) for relays (#1327) 2024-08-23 16:14:07 +02:00
7696882fa2 update docs 2024-07-02 15:37:18 +02:00
574b72d47b Update autoexecExamples.json 2024-07-02 15:07:04 +02:00
94e4053326 Create combine_sign_and_value.bat 2024-07-02 15:04:52 +02:00
53d37d0819 build docs 2024-06-23 18:26:07 +02:00
5009cff8aa add buzzer sample to docs (not refreshed) 2024-05-26 14:31:16 +02:00
79475574aa refresh docs 2024-05-15 19:53:06 +02:00
ebc94676cc some more docs work 2024-05-11 12:15:49 +02:00
cc38adf462 docs 2024-05-11 11:46:04 +02:00
9e71da2ee5 a bit better docs 2024-05-11 11:26:33 +02:00
ce4714d530 docs 2024-05-10 21:06:28 +02:00
1c2e199914 update docs 2024-04-18 09:17:37 +02:00
42dd053503 Add color format option for sm16703p (#1163) 2024-04-05 10:01:19 +02:00
8769db66a7 refresh docs 2024-03-13 17:51:10 +01:00
c59e2ba686 docs refresh 2024-03-05 15:51:15 +01:00
7e59270362 update docs 2024-03-04 17:14:52 +01:00
99c9d2a009 TOMPD-63-WIFI TuyaMCU power meter config with alternate HTML panel hosted in LittleFS 2024-03-04 17:14:01 +01:00
41ccdbabae docs 2024-02-19 11:12:27 +01:00
e4c5bc1780 docs update 2024-02-19 11:05:35 +01:00
b7ce571172 LED strip driver docs 2024-02-19 10:50:05 +01:00
5ac2096ae2 add relay off delay sample to docs 2024-02-02 18:07:07 +01:00
b10df6d706 add advanced cou nt down timer script demo 2024-02-02 08:36:54 +01:00
8cc3ca6415 addClockEvent - allow TimerSeconds and multi-expand constants (#1045)
* addClockEvent - allow TimerSeconds

* Clean up tests

* Fix string tokenizer GetArgFrom when multi expand

When TOKENIZER_ALTERNATE_EXPAND_AT_START flag is set, the Tokenizer_GetArgFrom will return strings that are not aligned with the appropriate argument, this change attempts to fix that.

In addition multi expand is enabled in the addClockEvent function to allow the following commands:
```
addClockEvent $CH4:$CH5 0xff 5 echo ExpandedTimeString
addClockEvent $CH4*3600+54*60+59 0xff 5 echo cCculateTimerSecondsFromExpression
```

* Revert a function delete
2024-01-30 08:46:41 +01:00
3e0e321a01 Update autoexecExamples.md 2024-01-28 12:34:02 +01:00
3b8136a5e5 waitfor docs 2024-01-28 12:27:25 +01:00
61500f48f9 next autoexec sample 2024-01-27 12:25:19 +01:00
87868f2559 Get sunrise/sunset (#1030)
* Get the next sunset or sunrise values as TimerSeconds to allow setting a light's initial sate.

* Fix BL602 & W600 builds, and add some self test asserts for get sunrise/sunset

* Clock based self tests fail if they are not run in Europe time zone.

Update all usages of localtime to be gmtime. On windows local time is has the timezone applied on top of the sourceTime parameter, OpenBK app manages its own timezone and applies it to g_ntpTime appropriately, so gmtime will avoid the additional timezone application on windows machines.

* Simplify sample autoexec to avoid functionality that has not been implemented yet.

* Update docs

* Small fix in autoexe file

No brackets allowed, multiplications before addition appears to work
2024-01-20 13:50:40 +01:00