Nexobiz Biometric Sync Agent
============================

1. Copy config.example.json to config.json
2. Set cloud_url, tenant_slug, and agent_token (create token in Payroll > Biometric Devices)
3. Ensure PHP with curl extension is installed on a PC that can reach your terminals on LAN
4. Run: php sync-agent.php
5. Windows: right-click install-windows.ps1 > Run with PowerShell (registers hourly sync)

Supported providers: zkteco, anviz, generic_tcp, essl.

LAN protocols (set on each device in Nexobiz):
- ZKT-compatible — port 4370 (default for ZKTeco and most Anviz CrossChex setups)
- Native Anviz 5010 — port 5010 (classic Anviz TC_B firmware)

Use Sync Agent when Nexobiz is cloud-hosted and cannot reach your office LAN directly.

Optional config keys:
- push_employees_to_device (default true): pull employee roster from cloud and write to ZKTeco device (skipped for Native Anviz 5010)
- poll_interval_seconds: documented for future daemon use
