Commit Graph

230 Commits

Author SHA1 Message Date
745d689a4e update docs (#1905)
* Update new_pins.h

* update docs
2025-12-18 00:20:25 +01:00
5f45f69768 Doc updates to "getcommands.js" (#1888)
* getcommnads.js:

Add text and link to obk_config.h for defines used to enable a driver

Added first simple way to generate basic "events" documentation

* Add first version for the new documents "docs/events.md" and "docs/json/events.json"

* Changed handling of HTML-encoding of "<" and ">"

* Add new version of driver.md, too
2025-12-09 09:05:22 +01:00
3f93828622 Update getcommands.js, some minor doc-fixes (#1884)
updated documentation
2025-12-05 18:56:16 +01:00
2086cb84fc Implementation of girier MCU driver for 2ch dimmer (#1846)
* Implementation of girier MCU driver for 2ch dimmer

* Fixed review notices

* makefiles

* dpType = 0; // TODO - uninitialized

* header

* add to vcproj

* header

* #if ENABLE_DRIVER_GIRIERMCU

* clear

---------

Co-authored-by: Tester <85486843+openshwprojects@users.noreply.github.com>
2025-11-18 22:00:19 +01:00
60ca11183f Add support for Frequency variable in AddChangeHandler (#1853)
* add support for frequency variable in AddChangeHandler

* bl0942 frequency variable rounding correction

* move frequency to last args for VCPPublishThreshold

* frequency selftest precision adjustments

---------

Co-authored-by: kcstonacek <stonacek@stonacek.nz>
2025-11-11 21:35:39 +01:00
f58a25fc3d Fix RDA5981 ADC status in platforms.md (#1858)
revert. accident. OTA only should have been toggled
2025-11-10 19:30:14 +01:00
b28266261c readme tweaks, update RDA platforms.md, fix BK7231M QIO (#1856)
* Update platforms.md

* Update README.md

* Update README.md

* Update README.md

* Update OpenBK7231N
2025-11-06 11:38:12 +01:00
5a83d0268b tr6260 quick pwm fix (#1838)
* tr6260 fix pwm

* forgot gpio14

* tr6260 interrupts
2025-10-20 22:52:22 +02:00
f5a3b2642b RTL new fix OTA (#1836)
* RTL new fix OTA
clean-up workflow

* fix esp cache?
2025-10-17 08:44:13 +02:00
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
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
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
8136ebe8d6 rda fix flash vars (#1817) 2025-09-29 11:43:47 +02:00
6083ddfca5 RDA5981 (#1813) 2025-09-29 08:41:36 +02:00
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