* Try NTP split update to actual source
* fix windows makefiles and timed_events
* fix typo
* Fix sprintf format
* sprintf format - next try to fix for ESP and ESP8266
* sprintf - special case for ESP8266
* Adding GUI button to set clock
* fix
* Add debug output
* fix missing HTTP output
use original obk_config.h - only renaming functions - to see filesizes
* limit functions to NTP ode CLOCK present
* try fix selftests
* Enable simple clock for all platforms, even if NTP is not enabled
* test fixing merge-conflict
* try fixing merge conflicts #1
* try fix merge conflict
* Fix typos
consolidate time display on main page
fix double comments preventing several documentation details ($mday, $month ...) on docs/constants.md
enabling more time stuff for W800 for local testing.
* Fix setDST argument passing
* only test DST if clock is running
* Fix setting epoch time - use atol(<string arg>) instead of Tokenizer_GetArgInteger(0) for epoch
Change user_main.c to use xticks as uptime for g_secondsElapsed
* Fix g_secondsElapesd for Windows - no xTicks there so stick to old way with g_secondsElapesd++ here ...
* Fix simulator build
remove additional defines for W800 used for testing
* Use esp_timer_get_time() instead of xTicks for ESP.
Seems much better, 30 seconds difference in one day
(used to be over 10 minutes off in 12 hours)
* Include DS3231 code
* Include DS3231 RTC driver
* Try simple fix for TXW81X without RTOS
* Second try fix TXW81X
* Fix comments for doc
* fix obk_config (still using "#define ENABLE_NTP_SUNRISE_SUNSET" instead of new "#define ENABLE_CLOCK_SUNRISE_SUNSET")
fix RDA5981
(as already done in branch Split_NTP_new)
* fix deviceclock code for corrected #define
* enable DS3231 driver for all platforms to test compilation and compare sizes
* fix selftest DST and sunrise/sunset (command names are "CLOCK_..." not "NTP...")
* Fix selftest for DST and sunset/sunrise events
* Add debug to try fixing selftest issue
* more debug
* Disable bedug output after fix.
* Disable DS3231 for all platforms. To tes, use previous commit
* Fix comments and handling of year when setting time of DS3231
Switch to internal time functions to reduce flash usage (avoid gmtime and mktime)
* Fix direct acces of NTP-time via g_ntpTime - use function "Clock_GetCurrentTime()"
switch to obktime instead of time.h "gmtime"
* Fix missing include for deviceclock and obktime
* made ds3231 driver dependent on "#define ENABLE_DRIVER_DS3231"
change "deviceclock.c" to set DS3231 RTC on every clock set command if driver is running, so e.g. every NTP update will also adjust RTC time
* fix missing includes for DRV_IsRunning() and DS3231_SetEpoch()
* introducing DS3231_informClockWasSet(bool force) - called by drv_deviceclock whenever clock is set.
so DS3231 driver can ste the clock, if needed - using "force" will force setting (no supprise ;-))
* Fixes to drv_main.c (missing args for onHassDiscovery)
Fixed missing arg "bPreState" in XX_AppendInformationToHTTPIndexPage()
Changed name from CLOCK to TIME
changed some "gmtime" to obktime "calculateComponents()a
* fixes
* fix obk_config.h
* fix missing include
* fix include for drv_txw81x_camera.c
* Directly call TIME "driver" functions, but don't use as real driver - so hiding it's presence in GUI
* fix missing OnEverySecond for TIME
* Prepare for merge: disable DS3231 driver for all platforms
* fix broken obk_config.h
* revert unintended change of src/driver/drv_max72xx_single.c
* 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>
* ENABLE DMX on ESP
* test
* s
* Update hal_uart_espidf.c
* Update obk_main.cmake
* w
* test
* Update hal_uart_espidf.c
* Update drv_dmx512.c
* test
* test
* test
* w
* t
* c
* t
* test
* T
* Update drv_dmx512.c
* test
* test
* try flush
* try wait
* ticks w
* t
* fx
* 100 ms
* SIM fx
* Update cmd_newLEDDriver.c
* test 2x
* tests
* fixes
* free
* fix
* misc
* b
* hal
* s
* Update workflow.yaml
* pin
* fin
* test
* Update hal_uart_espidf.c
* Seperate simple and full driver, introduce "common" for shared code
* Fix command prefixes
* Generate command as multiline if requested
* Fix JS linebreak
* Only use simple dirver - check sizes of firmware images
* Update obk_config.h - enable Full driver for all platforms to allow testing
* Change parsing sttring to device address to allow compact form
Change obk_config.h: remove extra entry for W800, add "FULL" driver to windows build
* fix windows code for "fake" DS18B20
* fix missing files in openBeken_win32_mvsc2017.vcxproj
* fix handle missing task.h for windows
* change Windows emulation to MAX/2 fake sensors
* try fix BL602
* change "fake temperature" of sensors in windows
* change windows sensor temperature once more
* shorten commands by alias
* fix escaping linebreak
* Fix broken JS code ...
* Fix ESP32 is crashing if interrupts are disabled during OWReset for > 480us
* Change output for unused channels
Test if DS1820 channels are in use
* fix warning/error for channel (<=64) printed into a char[5] value
* removeunuses quotes for address
* Fix language
* Capial "S" in Menu entry "Sensors"
* restore obk_config - #define ENABLE_DRIVER_DS1820_FULLonly for WINDOWS and SENSORS variant
Since I saw this in an illustration for an "issue".
If I'm not mistaken, I changed the GUI some time ago so the additional input appears/vanishes as soon as role is changed to button. So no need to wait for saving...
The tests were segfaulting on linux, I don't know how they work on
Windows, perhaps casting `void*` to `int` happens to work there.
Generally it's not portable.
Berry has a dedicated `comptr` type, so let's use that and be portable.
Also makes `run_closure` handle arbitrary number of arguments, see
https://berry.readthedocs.io/en/latest/source/en/Chapter-5.html#function-with-variable-number-of-arguments-vararg
for docs.
Test Plan:
* CI
* make -f custom.mk, ./build/win_main -runUnitTests 2
* t
* fx
* split closure handler
* setTimeout, setInterval
* split berry frm SVM, but I need to move event waiter to separate struct?
* fx
* fx
* split relations
* remvoe ode duplciaton
* POC - pass value to berry
* POC - pass str to berry
* berry preps + lfs test
* lfs test + bytes
* save
* remove code duplication
* try dpid calls
* working test for bytes
* tyuamcu to file in eberry
* str for berry test
* tuyamcu to berry glue
* fx1
* fixes
* try berry http
* fix
* tests
* test vaar lifespan
* test
* test
* test if
* berry in html
* #if ENABLE_OBK_BERRY
* fx
* better
* fx
* test nested loop
* free mem
* simpler
* split lfs run
* arg
* fx
* fix
* #if ENABLE_OBK_BERRY
* comamnd hook
* vars access, ntp
* finalize?
* unfinished
* twinbl energy for channel 2
* .
* removed movavg
* Added HASS MQTT frequency (both standard and TWIN_MODE)
* .
* simplify, store total only IX0
* Ext BugFix: addChangeHandler Power < 20 appears broken #1543
* 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>
* ambd
* update sdk, get current fw idx
* test
* ota
* reset if hard fault
* revert and fix
* uart flow control
* disable uart tcp debug by default
* test
* wifi test
* adjust lwip
adjust scan
* increase timeout
* enable ssdp, close uart tcp sockets on restart
* test
* pwm
* fix bl0942
* cut some code
* Twin BL0942 mod
* Energy data more checks for index 0
* BL09XX_ResetEnergyCounter reset lastSavedEnergyCounterValue
* added ENABLE_BL_TWIN compiler option, default disabled
* added more ENABLE_BL_TWIN