zephyr/samples/net
Seppo Takalo dc8f6da53c net: lwm2m: Implement fallback mechanism and support for diable
If server registration fails, allow fallback to secondary server,
or fallback to bootstrap.
Also allow fallback to different bootstrap server.

Add API to tell RD client when server have been disabled by
executable command.

Changes to RD state machine:
* All retry logic should be handled in NETWORK_ERROR state.
* New state SERVER_DISABLED.
* Internally disable servers that reject registration
* Temporary disable server on network error.
* Clean up all "disable timers" on start.
* Select server first, then find security object for it.
* State functions return void, error handling is done using states.
* DISCONNECT event will only come when client is requested to stop.
* NETWORK_ERROR will stop engine. This is generic error for all kinds
  of registration or network failures.
* BOOTSTRAP_REG_FAILURE also stops engine. This is fatal, and we cannot
  recover.

Refactoring:
* Server selection logic is inside server object.
* sm_handle_timeout_state() does not require msg parameter. Unused.
* When bootstrap fail, we should NOT back off to registration.
  This is a fatal error, and it stops the engine and informs application.

Signed-off-by: Seppo Takalo <seppo.takalo@nordicsemi.no>
2023-12-05 16:40:06 -06:00
..
capture samples: net: doc: Use new Sphinx extension to document networking samples 2023-09-19 15:22:59 +01:00
cellular_modem samples: net: doc: Use new Sphinx extension to document networking samples 2023-09-19 15:22:59 +01:00
cloud samples/net/cloud/aws_iot_mqtt: Fix sample yaml 2023-11-06 16:06:36 +01:00
common
dhcpv4_client samples: net: doc: Use new Sphinx extension to document networking samples 2023-09-19 15:22:59 +01:00
dns_resolve samples: net: doc: Use new Sphinx extension to document networking samples 2023-09-19 15:22:59 +01:00
dsa samples: Switch from NEWLIB_LIBC to REQUIRES_FULL_LIBC 2023-10-25 08:32:06 +02:00
gptp samples/net/gptp: Move from native_posix to native_sim 2023-11-15 10:03:17 +01:00
gsm_modem samples: net: doc: Use new Sphinx extension to document networking samples 2023-09-19 15:22:59 +01:00
ipv4_autoconf samples/net: Move from native_posix to native_sim 2023-11-15 10:03:17 +01:00
lldp samples/net: Move from native_posix to native_sim 2023-11-15 10:03:17 +01:00
lwm2m_client net: lwm2m: Implement fallback mechanism and support for diable 2023-12-05 16:40:06 -06:00
mdns_responder samples: net: mdns_responder: Add VLAN support 2023-11-17 12:40:33 +01:00
mqtt_publisher random: Rename random header 2023-10-10 14:23:50 +03:00
mqtt_sn_publisher samples/net/mqtt_sn_publisher: Move from native_posix to native_sim 2023-11-15 10:03:17 +01:00
openthread/coprocessor samples: net: doc: Use new Sphinx extension to document networking samples 2023-09-19 15:22:59 +01:00
promiscuous_mode samples: net: doc: Use new Sphinx extension to document networking samples 2023-09-19 15:22:59 +01:00
sockets samples: disable usermode for ip_k66f 2023-11-28 11:59:00 -06:00
stats docs: networing: Replace references to native_posix w native_sim 2023-11-15 10:03:17 +01:00
syslog_net samples: Switch from NEWLIB_LIBC to REQUIRES_FULL_LIBC 2023-10-25 08:32:06 +02:00
telnet samples: net: doc: Use new Sphinx extension to document networking samples 2023-09-19 15:22:59 +01:00
tftp_client docs: Networking with native_posix: Rename 2023-11-15 10:03:17 +01:00
virtual samples: net: doc: Use new Sphinx extension to document networking samples 2023-09-19 15:22:59 +01:00
vlan samples: net: doc: Use new Sphinx extension to document networking samples 2023-09-19 15:22:59 +01:00
wifi drivers: wifi: added Infineon AIROC WIFI driver 2023-11-08 15:07:37 +00:00
wpan_serial samples: fix thread function signatures 2023-10-30 12:24:34 +01:00
wpanusb samples: fix thread function signatures 2023-10-30 12:24:34 +01:00
zperf samples: net: doc: Use new Sphinx extension to document networking samples 2023-09-19 15:22:59 +01:00
net.rst