updated extracting deviceid from scope

fix
Amalka Subasinghe 2 years ago
parent 01967c6a1b
commit 914fecd9b1

@ -467,8 +467,8 @@ public class ExServer {
String deviceType = null; String deviceType = null;
String deviceId = null; String deviceId = null;
for (String scope : scopeArray) { for (String scope : scopeArray) {
if (scope.startsWith("device_")) { if (scope.startsWith("device:")) {
String[] scopeParts = scope.split("_"); String[] scopeParts = scope.split(":");
deviceType = scopeParts[1]; deviceType = scopeParts[1];
deviceId = scopeParts[2]; deviceId = scopeParts[2];
break; break;

Loading…
Cancel
Save