Commit Graph

3956 Commits

Author SHA1 Message Date
ba153bdb28 add new define: ENABLE_OBK_SCRIPTING (#1503)
* add new define: ENABLE_OBK_SCRIPTING

* cmd_script
1.18.17
2025-01-10 20:21:07 +01:00
eb5b1ca2d0 Allow to disable more drivers and features in order to reduce binary size (#1500)
* Update obk_config.h

* Update obk_config.h

* shared

* fx

* he

* fix

* fx

* ffff

* F

* T

* tre

* fcx

* leeed

* ww

* w

* fx

* t

* ENABLE_OLD_YAML_GENERATOR

* w

* startyuip[

* dis all

* remove test post

* ENABLE_HTTP_SEND

* extra guard

* ENABLE_TCP_COMMANDLINE

* better OBK_DISABLE_ALL_DRIVERS

* tr

* ENABLE_PING_WATCHDOG

* ENABLE_HA_DISCOVERY

* TEST WITH EMPTY USER_MAIN

* fx

* no mqtt

* nm

* tr

* ENABLE_MQTT

* Update cmd_newLEDDriver.c

* tr

* header

* fx

* Update user_main.c

* t

* Update hal_main_bk7231.c

* w

* ENABLE_DRIVER_IR

* RESTORE

* fx

* #warning "Platform not defined"

* fx 1

* Update obk_config.h

* ENABLE_DRIVER_TESTPOWER

* DS1820

* fx

* fx

* enable DHT on W800

* Update Makefile

* ntp w800

* ntp

* ssdp

* OWM AND CHARTS

* why utils net has flash pub included

* nmakefile only, no refs

* makefile only

* drv

* Update Makefile

* drcs

* ENABLE_DRIVER_BMP280

* Update Makefile

* d

* ENABLE_I2C

* Update Makefile

* fin
1.18.16
2025-01-10 19:50:17 +01:00
a45714b898 selftest: check parsing names in send dp 1.18.15 2025-01-10 00:21:09 +01:00
b1f745deb1 setChannelType 10 ReadOnly test 1.18.14 2025-01-08 11:05:59 +01:00
c7d6eac06c test 60.5 2025-01-08 10:51:11 +01:00
f20b5e2259 cal warning 1.18.13 2025-01-08 10:47:24 +01:00
5f53e20cd5 PowerSet self test 2025-01-08 10:43:44 +01:00
a5e439f03b separate defines for some old drivers
* test

* Update obk_config.h

* Update obk_config.h

* Update obk_config.h

* Update obk_config.h

* Update obk_config.h

* Update obk_config.h

* tr
1.18.12
2025-01-06 23:06:31 +01:00
b4b149046a Update .releaserc.yaml 1.18.11 2025-01-06 18:50:29 +01:00
6308138201 Update .releaserc.yaml 1.18.10 2025-01-06 18:29:32 +01:00
69be7380aa Update .releaserc.yaml 1.18.9 2025-01-06 18:20:31 +01:00
149df680ec http_client: fix sending HTTP POST without content (#1496)
Invoking HTTP POST without a request-body results in a request which
incorrectly has content-type and content-length set.

This results from a missing check if a body is provided as an argument.

Add this missing check in order to allow POST requests without a message
body to work.

Signed-off-by: David Bauer <mail@david-bauer.net>
1.18.8
2025-01-06 15:09:06 +01:00
51a572e492 fx 1.18.7 2025-01-06 00:00:25 +01:00
97f3ae3743 Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 1.18.6 2025-01-05 23:10:36 +01:00
4bb2eebb98 Update hal_wifi_rtl87x0c.c 2025-01-05 23:09:50 +01:00
6eb8162b45 static rtl (#1492)
* Update hal_wifi_rtl87x0c.c

* Update hal_wifi_rtl87x0c.c

* test

* fx

* test
1.18.5
2025-01-05 22:57:17 +01:00
9b84004ae7 Update workflow.yaml 1.18.4 2025-01-05 15:19:48 +01:00
3a1c3e9bbf BatteryLevelPercent for HA 1.18.3 2025-01-05 14:39:19 +01:00
489e8a1a33 Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 1.18.2 2025-01-05 00:15:08 +01:00
d0b4168f29 color formats self test 2025-01-05 00:15:01 +01:00
57deab7d7a tr6260_ssdp (#1480)
* tr6260_ssdp

* Repoint submodule to commit d8263486a42f88d7a52ee5218c21a598b9470194
1.18.1
2025-01-04 22:48:43 +01:00
0efec12de6 feat(httpserver): improved mimetype handling for frontend files (#1481) 1.18.0 2025-01-04 10:41:36 +01:00
48755f3008 Update .releaserc.yaml 1.17.822 2025-01-02 16:29:55 +01:00
1f533c00ed Update README.md 1.17.821 2025-01-01 15:33:29 +01:00
2a9a7270f2 RTL8710C/RTL8720C support (#1468)
* Move delay us and wdt to hals, update workflow

* rtl8720c initial

* move uart to hal

* rtl uart

* obk adjustments

* sdk adjustments, fix ota

* add some features

* fix some warnings

* esp uart + tr6260/esp tcp_msl

* add bl0937, adjust ota

* enable artifacts merge

* add forgotten ln882h delay

* fix mqtt, pwm on boot

* irq fix

* fix wifi disconnect

* update sdk, change lfs location and size

* Update Makefile
2025-01-01 12:11:49 +01:00
8fba7dd31e fix ENABLE_I2C on BL602
* disable i2c

* test

* fx

* fxes

* Update obk_config.h
1.17.820
2024-12-31 16:37:46 +01:00
f80457a631 submit test code - pin visualize and bl0942 dump 1.17.819 2024-12-31 15:29:27 +01:00
30cada0857 Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 1.17.818 2024-12-31 14:26:21 +01:00
c30027db5a invalid return fix 2024-12-31 14:25:02 +01:00
1f51f65816 OTA for W800 + "Simple OTA" w/o httpd (#1471)
* OTA for W800
Removed unnecessary (and wasting resources) fetching of "index?status=1" on pages not using "state" div
Added simple "internal OTA" (just POST-ing a file)
Basic tests done - try avoiding other TCP connections to save memory
Somtimes there are memory related messages in log like "Thread create HTTP Client - errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY".

OTA working in most cases, somtimes device crashes during update.
Device will immediatly reboot after OTA completion, even printfs after writing last bytes was not visible in console.

* Add some more warnings
Make file selector accepting images on extension for platform
For Beken: Check magic "RBL" and future Platform name in header

* Changed way to verify firmware files: must match OBK file structure for the platform
As suggested by @NonPIayerCharacter added "NO_PLATFORM_OTA" in obk_config.h
For platforms w/o OTA the page will be only showing a hint.

* Fix page for non OTA devices

* streamlined tests
moved platform dependent #define for OTA extension to obk_config.h

* Optimized JS code

Only show hint for ".rbl" file on Beken platforms

Added a #define OBK_OTA_NAME_EXTENSION, actually only for LN882H
(here UART and OTA file are identicaly except an "_OTA" in the file name).
Otherwise the UART file would also match the template
(this file would not be flashed because of additional checks, but if we can prevent this ...)
2024-12-30 23:20:21 +01:00
3331f721b0 Try no state request on pages with no "state" div (#1464)
* Try no state request on pages with no "state" div

* move test for psence of "state" div
1.17.817
2024-12-29 11:00:46 +01:00
a11c671b25 Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 1.17.816 2024-12-28 22:53:26 +01:00
1f044b2d0f add channels label clear 2024-12-28 22:37:47 +01:00
cafa3619a5 Add commands to check if actual time is in DST or not (#1429)
* Add commands to check if actual time is in DST or not

New command "clock_calcDST nthWeekEnd monthEnd dayEnd hourEnd nthWeekStart monthStart dayStart hourStart"
to set the DST start and end rule.

$isDST will return 1 if DST is active, 0 else

It's enabled with

* switched from strftime to ctime to get smaller memory footprint

* disabled feature by default in obk_config.h (enabled for Windows for possible testing)

* try selftest for DST

* enable Test_NTP_DST() in win_main.c

* fix missing NTP offset settings, fix LOG

* Add possibility to set g_ntpTime according to DST settings
tried to reduce image sizes by avoiding mktime
still image size for this feature varies very much:

LN882H: 2.2k in bin / 1.5k in OTA
Beken:  4.3k in rbl
BL602:  21.4k in bin / 9.7k in ota

This commit has feature enabled, to get images for testing, will change it to disabled by default in next release

* disable feature for all plattforms but windows (to allow tests)

* Fix selftest - all DST changes are now done by the system!

* Fix selftest - setsimulated time must also call setDST as "real" ntp setting

* Next try to fix selftests

* For testing switch back to mktime

* New try to reduce image by avoiding time functions
Fix own leap year calculation

* Disable feature for all platforms but Windows (to keep selftest)
1.17.815
2024-12-28 22:23:21 +01:00
f099183753 self test for conditional relay 2024-12-28 22:21:07 +01:00
baf49865ac fix vcp error to pass elf test 1.17.814 2024-12-27 19:40:12 +01:00
9faa30191e fx 2024-12-27 19:39:30 +01:00
748ec4b1be VCP self test 2024-12-27 19:39:02 +01:00
c14b06d137 Merge branch 'main' of https://github.com/openshwprojects/OpenBK7231T_App 1.17.813 2024-12-27 02:02:35 +01:00
f229e2c204 negative channel fix 2024-12-27 02:02:24 +01:00
22f68ffdff unfinished flags self test 1.17.812 2024-12-24 19:01:17 +01:00
2f0b9ed280 docs 2024-12-24 18:56:12 +01:00
bd7c599cec docs 1.17.811 2024-12-24 18:46:30 +01:00
cbc7995f62 docs 1.17.810 2024-12-24 18:37:01 +01:00
d34cd4256c docs 2024-12-24 18:31:46 +01:00
e0bd9769df docs 2024-12-24 18:15:35 +01:00
576b456552 doc 1.17.809 2024-12-24 18:08:55 +01:00
55b671e847 docs 2024-12-24 18:03:44 +01:00
c390303fb8 docs 1.17.808 2024-12-24 17:47:35 +01:00
c9d0dac46e doc 1.17.807 2024-12-24 17:22:39 +01:00