Adding a charger
1
The card
The card has a WLAN Login QR code and a device password. Your user scans the WLAN Login code (not the Web App code) and types the password. They can also type the hotspot’s details instead.
2
The setup
The phone joins the charger’s hotspot; your user taps Join when the phone asks. Link signs in to the charger, reads its settings, cards and charging history, and points it at Plugchoice, which restarts the charger. Before the hotspot closes, Link shows how the charger will reach the internet (Ethernet, Wi-Fi or mobile), and your user can connect it to a Wi-Fi network there. Then the phone returns to its own network.
3
Online
Link waits until the charger connects to Plugchoice.
- Cards, history and the current operator come along. Plugchoice imports the charger’s cards and charging history. When the charger used another OCPP backoffice, Plugchoice keeps it connected alongside.
- The right card. Link checks that the charger it reaches matches the card.
- No internet during the setup. The phone is on the charger’s hotspot for part of it, which has no internet. The SDK keeps the hosted flow working, and keeps the screen awake, because the hotspot drops when the phone locks.
What your app needs
- iOS: the Hotspot Configuration and Access Wi-Fi Information entitlements and
NSLocalNetworkUsageDescription. On iOS 18 and later, AccessorySetupKit asks once per charger instead of on every join. See iOS. - Android: the charger serves its setup over plain HTTP on its hotspot (
http://172.16.0.1). Android blocks plain HTTP in release builds unless your network security configuration allows it. See Android. - React Native: the config plugin sets up iOS; Android’s network security configuration is yours to set. See React Native.