Non-keep-alive Wi-Fi locks do not have online or offline states and are connected as required.
Keep-alive Wi-Fi locks are displayed as offline in a period of time after power-off.
Bluetooth locks can be connected as required or actively initiate persistent connections. After the lock is disconnected from Bluetooth, the lock is displayed as offline. Both the lock and App can initiate connection and disconnection.
Zigbee locks are in the online state when the power supply and signals are stable. After the power supply or network is disconnected, Zigbee locks are in the offline state.
NB-IoT locks have the same logic as Zigbee locks.