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)
Requesting "STATUS" or "STATUS 5" on W800 was crashing the module.
Reason was "tmpStr" was too short, now it works.
Might have caused instability on other platforms, too
Reason for the Change:
The current text "Build on xxxxx" is grammatically incorrect in this context. The word "build" is a verb in its base form, which is used to describe the action of constructing or creating something. However, in the context of displaying the date and time when the program was constructed, the past participle "built" should be used. This is because we are referring to an action that has been completed in the past.
* test
* Update drv_ir2.c
* fx
* fx
* fx
* qq
* test3
* tok
* test duty
* fx
* hdr
* fx
* fx
* tr
* n header
* tr
* tr
* fx
* fx
* test
* tr
tr
* fx
* simpler
* fx
* test
* fx
* dbg
* tr
* tr
* fx
* fx
* fx
* tr
* fx
* pin select
* fx
* fx
* Update drv_ir2.c
* Update drv_ir2.c
* try
* Update drv_ir2.c
* Update drv_ir2.c
* fx
* Update drv_ir2.c
* args len
* http_fn_cmd_tool: len
* better buffer handling
* try lager buffer
* clear
* Update drv_ir2.c
* long packet self tests
* Update drv_ir2.c
* Update drv_ir2.c
* alternate alias
* Queue size
* fx
* fx
* disable
* sample