Yapay zekâ tarafından English dilinden çevrildi ·
İkisi de çalışır, ikisini de sahada kullandım. Bookworm üzerinde işler çok daha az uğraştırıcı, NetworkManager hem AP’yi hem NAT’ı tek seferde yapıyor:
sudo nmcli dev wifi hotspot ifname wlan0 ssid shed-iot password 'long-passphrase-here'
sudo nmcli con mod Hotspot connection.autoconnect yes ipv4.method shared
ipv4.method shared, ESP32’lere DHCP dağıtır ve onları varsayılan rotada hangisi varsa, yani 4G donanımınız, üzerinden NAT’lar. Pi’nin dahili Wi-Fi’si kısa mesafede 8 istemci için yeterlidir.Burada iki kez düşünmenizi önereceğim konu ısı ve SD kartlar ile Pi takıldığında kimsenin ona erişememesi. Pi tercih ederseniz: ısı emici olarak metal kasa, iyi bir endüstriyel SD kart veya USB SSD, mümkünse salt okunur kök dizin ve donanım watchdog’unun etkinleştirilmesi.Lisanslı bir router, Hermetry’de fiyatı karşılığında şunları sağlar: yerel Cloud sayfasındaki kodla cihazı sahiplenirsiniz, kendi sertifikasıyla oturum açar, ayarlarını değiştirebilir ve yazılımını Hermetry üzerinden güncelleyebilirsiniz; ayrıca 4G bağlantısında sahip olmayacağınız sabit IP olmadan cihaz sayfasından web paneline erişebilirsiniz. Kuruluşunuzun kendi cihazıdır ve cihaz limitine bir kez sayılır. Uzaktan erişim oturumları süreli ve denetlenir.Benim kuralım: Gidip ulaşabileceğim tek bir saha için Pi. Bir pikap ve bir gün gerektiren sahalar için lisanslı router. Ayrıntılar: Licensed gateways and Hermetry Edge.
Both work, I have both in the field. On Bookworm it’s much less fiddly, NetworkManager does the AP and the NAT in one go:
sudo nmcli dev wifi hotspot ifname wlan0 ssid shed-iot password 'long-passphrase-here'
sudo nmcli con mod Hotspot connection.autoconnect yes ipv4.method shared
ipv4.method shared hands out DHCP to the ESP32s and NATs them out of whatever has the default route, your 4G dongle. The Pi’s onboard Wi-Fi is fine for 8 clients at short range.
Where I’d think twice is heat and SD cards, plus nobody can reach the Pi when it hangs. If you go Pi: metal case as heatsink, a decent industrial SD or USB SSD, read-only root if you can, and the hardware watchdog enabled.
What a licensed router gives you on Hermetry for the money: you claim it with the code on its local Cloud page, it logs in with its own certificate, you can change its settings and update its firmware from Hermetry, and you can open its web panel from its device page without a fixed IP, which on a 4G link you won’t have. It’s a device in your org itself and counts once against the device limit. Remote access sessions are time-limited and audited.
My rule: one site I can drive to, Pi. Sites that need a ute and a day, licensed router. Details: Licensed gateways and Hermetry Edge.

