Hi DEV community!

We are currently architecting an IoT-enabled smart locker solution deployed in the Middle East region (specifically Oman). The goal is to support contactless drop-off and pickup via OTP and dynamic QR codes.

You can see the project scope and preliminary deployment specifications here: Smart Locker System Oman
.

We are evaluating our hardware and network architecture and would love insights from engineers who have built similar unattended kiosk or locker hardware:

  1. Microcontroller vs. Single Board Computer

For controlling 24–48 solenoid/electric strike locks with sensor feedback (door open/closed detection):

Is it better to run an industrial ESP32 module over RS485/Modbus, or a centralized Raspberry Pi / Industrial SBC directly driving relay boards?

  1. Communication Protocol & Offline Resilience We are currently leaning toward MQTT over TLS for push-notification unlocks, with a fallback local cache for offline verification if cellular/Wi-Fi connectivity drops. How do you handle clock synchronization and token expiration when offline?
  2. Thermal & Environmental Considerations Given outdoor temperatures regularly exceeding 45°C (113°F) in Oman, what thermal dissipation and hardware enclosure practices have worked best for you to prevent controller throttling or lock relay failures?

Would appreciate any recommendations on real-world pitfalls to avoid with lock controller architectures!