# TTLE_2012: TTLock API: device not connected to a gateway

- Module: TTLE. TTLock cloud API error codes (suffix = TTLock error number)
- Severity: Warning
- Impact: Customers. End customers are affected (e.g. a missing e-mail, payment or order).
- Retry: Automatic. The platform retries or self-heals on its own.
- Reference: https://docs.bizkithub.com/en/system-codes/TTLE_2012

## What happened

The TTLock API reports that the lock is not connected to any gateway, so remote operations cannot reach it. The lock is marked offline until it reconnects.

## Likely causes

- The gateway is unplugged or offline.
- The lock was unpaired from its gateway in the TTLock app.

## How to resolve

1. Check that the gateway is powered and online.
2. Verify in the TTLock app that the lock is still paired with the gateway.
3. Make sure a valid backup code covers reservations until the gateway is back.

## Related codes

- TTL_003: TTLock gateway is offline
- TTLE_3002: TTLock API: gateway offline
- TTL_001: TTLock passcode provisioning failed
- TTLE_3009: TTLock API: remote command timed out
- TTLE_1: TTLock API: operation failed (code 1)
- TTLE_10004: TTLock API: request rejected (code 10004)
