ποΈ Network Topology Configuration API
Comprehensive API for building map integration, network topology configuration, and automated gateway management
Overview
This document provides comprehensive API and MQTT message structures for building maps with gateway mesh networks, MAC addresses, and location mapping in the ESL Admin system.
- ποΈ Network Topology Configuration - Configure entire network topology directly from building map UI
- π€ MQTT Configuration Messages - Send complete network configuration to main gateway
- π Automatic Gateway Management - Main gateway auto-discovers and configures mesh gateways
- π Server-Like Functionality - Main gateway acts as network server with DHCP, coordination, and management
The main gateway now acts like a network server that can:
- Manage DHCP ranges for mesh gateways
- Coordinate mesh network formation
- Assign IP addresses automatically
- Configure network layers and VLANs
- Validate network topology
- Monitor gateway health and status
Each gateway in the network topology includes:
- MAC Address: Unique hardware identifier for network mapping and device tracking
- Location Coordinates: Physical position (x, y) in meters for building map integration
- Parent-Child Relationships: MAC addresses link mesh gateways to their parent gateways
- Auto-Discovery: MAC addresses are automatically discovered during deployment
- Manual Configuration: MAC addresses can be pre-configured for known hardware
ποΈ Network Topology Configuration API
Configure Network Topology from Building Map
Request Body:
Response:
Get Network Configuration Status
Response:
π€ MQTT Configuration Messages to Main Gateway
Network Topology Configuration Command
Main Gateway Response
π·οΈ MAC Address & Location Mapping
Gateway MAC Address Structure
Each gateway in the network topology includes MAC address information for unique identification and network mapping:
Location-to-MAC Address Mapping
The system maintains a mapping between physical locations and MAC addresses for building map integration:
πΊοΈ Gateway Mapping API
Get Gateway Network Topology
Query Parameters:
- customerId (optional): Filter by customer ID
- buildingId (optional): Filter by building/floor plan ID
- includeOffline (optional): Include offline gateways (default: true)
Response Sample:
π Usage Examples
1. Configure Network from Building Map UI
2. Monitor Configuration Deployment
3. Listen for Gateway Configuration Updates
π Security Considerations
π Authentication
All API endpoints require valid JWT tokens for access control and user identification.
π’ Authorization
Gateway access is scoped to customer ID to ensure data isolation between customers.
π MQTT Security
Use TLS encryption for all MQTT connections to protect data in transit.
π Location Privacy
Implement location data encryption for sensitive positioning information.
π Implementation Notes
π Location Accuracy
Use trilateration with multiple gateways for better accuracy in device positioning.
β‘ Real-time Updates
Implement WebSocket connections for real-time map updates and status changes.
π Caching
Cache network topology data for improved performance and reduced API calls.
π Scalability
Design architecture to handle buildings with 100+ gateways efficiently.