* 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
* 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 ...)
ota_persistent_write() might crash the device, it doesn't check if 4k buffer limits were ignored, writing outside the defined memory...
we might have a buffer so large, that we need to write multiple 4K segments (at least 2)
* SSID2 add retain SSID on reboot using setLastSSIDChannel command in early.bat
* func name
* save repair
* Cmd StartupSSID
* save repair 2
* cmd text
* .
* .
* Cmd disable on platforms without SSID2
* Update README.md
Add intention for fork
* Update README.md
Improve Readme
* Update hass.c
Fix issue of not using divider other than 1 for home assistant auto discovery val_tpl
* Update README.md
update Fork intention
* Update README.md
Revert Readme to original state
* Charts test for Ln882h and w800
* Update cmd_if.c
Try fix for DRV_GetReading without ENABLE_DRIVER_BL0937
* Update obk_config.h
* Update cmd_if.c
next try to fix Drivers w/o OBK_DISABLE_ALL_DRIVERS
* Update cmd_channels.c
... and another "DRV_GetReading" ...
* Update hass.c
... next problem: DRV_GetEnergySensorNames
* Update hass.c
.. more disabling code w/o energy driver
* Update http_fns.c
... and even more
* Update json_interface.c
... and energy drivers in json_interface.c
* Update user_main.c
another use of BL09X
* Update obk_config.h to remove define for charts driver
* First changes for static IP on LN882H - WiP - need to set DNS server IP
Needs change in SDK in components/net/lwip-2.1.3/src/port/ln_osal/netif/ethernetif.c
to make sure, DHCP isn't called after we set the IP:
diff --git a/components/net/lwip-2.1.3/src/port/ln_osal/netif/ethernetif.c b/components/net/lwip-2.1.3/src/port/ln_osal/netif/ethernetif.c
index e2b485e..2884ef3 100644
--- a/components/net/lwip-2.1.3/src/port/ln_osal/netif/ethernetif.c
+++ b/components/net/lwip-2.1.3/src/port/ln_osal/netif/ethernetif.c
@@ -16,6 +16,7 @@
#define IF_NAME_STA "ST" // Only support two ascii characters
#define IF_NAME_AP "AP" // Only support two ascii characters
+static int STA_USE_DHCP = 1;
typedef struct {
struct netif nif;
@@ -267,9 +268,10 @@ int netdev_set_state(netif_idx_t nif_idx, netdev_state_t state)
netif_set_status_callback(nif, sta_netif_status_changed_cb);
netif_set_link_callback(nif, sta_netif_link_changed_cb);
-
netifapi_dhcp_stop(nif);
+ if (STA_USE_DHCP) {
netifapi_dhcp_start(nif);
+ }
}
else
{
@@ -362,6 +364,8 @@ int netdev_set_ip_info(netif_idx_t nif_idx, tcpip_ip_info_t *ip_info)
if (ndev && ip_info) {
netifapi_netif_set_addr(netdev2netif(ndev), &ip_info->ip, &ip_info->netmask, &ip_info->gw);
+ // we set an IP in STA mode? --> disable DHCP, or it will be overwritten
+ if (nif_idx == NETIF_IDX_STA) STA_USE_DHCP = 0;
return 0;
}
return -1;
* set DNS with dns_setserver()
* Changed code so during STA init a golbal variable is set, wheter static IP is used.
This will be respected in netif (see OpenLN882H PR#17)