222 Commits

Author SHA1 Message Date
NonPIayerCharacter
f5a3b2642b
RTL new fix OTA (#1836)
* RTL new fix OTA
clean-up workflow

* fix esp cache?
2025-10-17 08:44:13 +02:00
KC Stonacek
fba323f3aa
Enum examples (#1832)
* create a ChType_Enum to go with SetChannelEnum

* resolve build errors for ChType_Enum PR

* fixing build errors for simulator and others for cmd_enums.c

* added ChType_ReadOnlyEnum and assocaited enum selftests

* ChType_Enum simulation and memory error corrections

* ChType_Enum documentation updates

* ChType_Enum autoexec example corrections

---------

Co-authored-by: root <root@stonacek.nz>
Co-authored-by: kcstonacek <kcstonacek@stonacek.nz>
2025-10-16 21:01:16 +02:00
KC Stonacek
4ad9a85a08
Add ChType_Enum and enable SetChannelEnum. (#1830)
* create a ChType_Enum to go with SetChannelEnum

* resolve build errors for ChType_Enum PR

* fixing build errors for simulator and others for cmd_enums.c

* added ChType_ReadOnlyEnum and assocaited enum selftests

* ChType_Enum simulation and memory error corrections

* ChType_Enum documentation updates

---------

Co-authored-by: root <root@stonacek.nz>
2025-10-14 09:21:18 +02:00
Nizam Moidu
4a2ae013ed
HLW8112 Driver for energy measurments (#1810)
* initial test driver for hlw8112

Signed-off-by: Nizam <code@maxters.net>

* restrict build to BK7231N
will stub other platforms later

Signed-off-by: Nizam <code@maxters.net>

* fix newer gcc build

Signed-off-by: Nizam <code@maxters.net>

* fix channel b stat restore
after all i still doesnt get pointer arithmetic

Signed-off-by: Nizam <code@maxters.net>

* clean up flashvar bk7231 still use emetering struct to store data

Signed-off-by: Nizam <code@maxters.net>

* fix OpenBK7231N_ALT build fail

Signed-off-by: Nizam <code@maxters.net>

* disable incomplete spi device raw access commands and ui

Signed-off-by: Nizam <code@maxters.net>

* remove mqtt hack for commands. leverage existing tasmota command framework

Signed-off-by: Nizam <code@maxters.net>

* missed flashvar restore

Signed-off-by: Nizam <code@maxters.net>

* disable hlw812 driver for upstream pr

Signed-off-by: Nizam <code@maxters.net>

---------

Signed-off-by: Nizam <code@maxters.net>
2025-09-30 15:04:15 +02:00
NonPIayerCharacter
8136ebe8d6
rda fix flash vars (#1817) 2025-09-29 11:43:47 +02:00
NonPIayerCharacter
6083ddfca5
RDA5981 (#1813) 2025-09-29 08:41:36 +02:00
NonPIayerCharacter
e85b9a67be
small update (#1786) 2025-09-05 08:58:42 +02:00
NonPIayerCharacter
0d007112b1
TXW817 support (#1779)
* txw81x base no makefile

* txw81x

* gpio fix?

* non-working ota

* mic
2025-09-03 11:46:06 +02:00
divadiow
e5b1b864fa
spellings (#1767) 2025-08-19 08:50:37 +02:00
NonPIayerCharacter
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
NonPIayerCharacter
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
divadiow
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
divadiow
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
NonPIayerCharacter
afdf4b5cb5
Update platforms.md (#1735) 2025-07-21 15:10:34 +02:00
divadiow
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
openshwprojects
901295154a
Create platforms.md 2025-07-19 16:26:32 +02:00
Martin
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
Tester23
b02068e485 docs refresh 2025-06-17 18:01:35 +02:00
divadiow
8ac653b89a
Update safeMode.md (#1599) 2025-04-11 08:51:52 +02:00
Bartosz Nitka
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 40ec2f667716aa20180305ec7c3f1e61e88394c8.

* 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
alexsandroz
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
Tester
cbc7995f62 docs 2024-12-24 18:37:01 +01:00
Tester
d34cd4256c docs 2024-12-24 18:31:46 +01:00
Tester
955677f913 docs 2024-12-24 15:43:20 +01:00
Tester
bba5382d7c docs 2024-12-24 15:22:25 +01:00
Tester
f971f823ea docs 2024-12-24 15:17:47 +01:00
Tester23
b2bc6afa7c docs 2024-10-10 14:18:47 +02:00
Tester23
9415b4f374 tuyamcu sending autoexec sample 2024-10-10 13:30:21 +02:00
Tester23
831b896650 refresh docs 2024-09-14 02:50:50 +02:00
MaxineMuster
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
Tester
7696882fa2 update docs 2024-07-02 15:37:18 +02:00
openshwprojects
574b72d47b
Update autoexecExamples.json 2024-07-02 15:07:04 +02:00
openshwprojects
94e4053326
Create combine_sign_and_value.bat 2024-07-02 15:04:52 +02:00
Tester23
53d37d0819 build docs 2024-06-23 18:26:07 +02:00
Tester
5009cff8aa add buzzer sample to docs (not refreshed) 2024-05-26 14:31:16 +02:00
Tester23
79475574aa refresh docs 2024-05-15 19:53:06 +02:00
Tester23
ebc94676cc some more docs work 2024-05-11 12:15:49 +02:00
Tester23
cc38adf462 docs 2024-05-11 11:46:04 +02:00
Tester23
9e71da2ee5 a bit better docs 2024-05-11 11:26:33 +02:00
Tester23
ce4714d530 docs 2024-05-10 21:06:28 +02:00
Tester23
1c2e199914 update docs 2024-04-18 09:17:37 +02:00
Guillaume Besson
42dd053503
Add color format option for sm16703p (#1163) 2024-04-05 10:01:19 +02:00
Tester23
8769db66a7 refresh docs 2024-03-13 17:51:10 +01:00
Tester23
c59e2ba686 docs refresh 2024-03-05 15:51:15 +01:00
Tester23
7e59270362 update docs 2024-03-04 17:14:52 +01:00
Tester23
99c9d2a009 TOMPD-63-WIFI TuyaMCU power meter config with alternate HTML panel hosted in LittleFS 2024-03-04 17:14:01 +01:00
Tester23
41ccdbabae docs 2024-02-19 11:12:27 +01:00
Tester23
e4c5bc1780 docs update 2024-02-19 11:05:35 +01:00
Tester23
b7ce571172 LED strip driver docs 2024-02-19 10:50:05 +01:00
Tester23
5ac2096ae2 add relay off delay sample to docs 2024-02-02 18:07:07 +01:00