GPRSH Command — Socket Disconnection
Forces the disconnection of the active UDP/TCP communication socket.
What is it for?
🔌 Main use cases:
- ⚙️ Apply changes to destination IP addresses
- 🔄 Force reconnection to server
- 📡 Network or carrier change
- 🔧 Resolve connection issues
- 🔁 Restart communication channel
Executing this command interrupts active communication. Use only when necessary to update destination configuration.
Commands
| Operation | Syntax | Response |
|---|---|---|
| Disconnect | SGPRSH | RGPRSHOK |
Example
>SIP0"new.server.com",5000< // Change destination IP
>SGPRSH< // Force reconnection with new IP
>RGPRSHOK... // ConfirmationTypical server change sequence
>SIP0192.168.1.200/5000< // New primary IP
>SIP1192.168.1.201/5000< // New redundant IP
>SGPRSH< // Apply changes (reconnection)Compatibility
💾Firmware:v1.00.00
SPLegacy
ULLegacy
MTLegacy
C3Legacy
C5Legacy
SP-IOT
SM-IOT
ZE-IOT
See Also
- IP Command - Destination configuration
- COPS Command - Carrier selection
Last updated