updated extracting deviceid from scope

This commit is contained in:
Amalka Subasinghe 2023-04-21 22:45:07 +05:30
parent 01967c6a1b
commit 914fecd9b1

View File

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