@page @model RR3CommunityServer.Pages.DeviceSettingsModel @{ ViewData["Title"] = "Device Server Settings"; }
Configure server URLs for individual devices (syncs with APK)
| Device ID | Mode | Server URL | Last Updated | Actions |
|---|---|---|---|---|
@setting.DeviceId |
@if (setting.Mode == "online") { đ Online } else { đą Offline } |
@if (!string.IsNullOrEmpty(setting.ServerUrl))
{
@setting.ServerUrl
}
else
{
â
}
|
@setting.LastUpdated.ToLocalTime().ToString("MMM dd, yyyy HH:mm") |
Returns server configuration for a device (called by APK sync button)
{
"mode": "online",
"serverUrl": "https://rr3.example.com:8443",
"message": "Settings retrieved successfully"
}
Update settings from web panel (this page uses it)
{
"deviceId": "device_abc123",
"mode": "online",
"serverUrl": "https://rr3.example.com:8443"
}
Get all device settings (admin only)