File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 88object oRoom;
99string sRoomId;
1010string sChannelId;
11+ object oChannel;
1112boolean bFirst = true;
1213boolean bFirstSecond = true;
1314
@@ -29,14 +30,18 @@ foreach (sRoomId, dom.GetObject(ID_ROOMS).EnumUsedIDs())
2930 Write('", "Channels":[');
3031 bFirstSecond = true;
3132 foreach(sChannelId, oRoom.EnumIDs()) {
33+ oChannel = dom.GetObject(sChannelId);
34+ ! Objekt ueberspringen, falls nicht vom Typ CHANNEL (33)
35+ if (oChannel.Type() != 33) { continue; }
36+
3237 if (bFirstSecond == false) {
3338 Write(',');
3439 } else {
3540 bFirstSecond = false;
3641 }
37- string sIfaceId = dom.GetObject(sChannelId) .Interface();
42+ string sIfaceId = oChannel .Interface();
3843 string sIface = dom.GetObject(sIfaceId).Name();
39- Write('{"Address":"' # dom.GetObject(sChannelId) .Address() # '",');
44+ Write('{"Address":"' # oChannel .Address() # '",');
4045 Write('"Interface":"' # sIface # '"}');
4146
4247 }
You can’t perform that action at this time.
0 commit comments