Skip to content

Commit

Permalink
[opc] fixed broadcast
Browse files Browse the repository at this point in the history
broadcast info didn't include the ids
  • Loading branch information
pattacini committed Apr 27, 2018
1 parent 90599a8 commit 4f5881a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/objectsPropertiesCollector/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,10 +670,11 @@ class DataBase : public RateThread
else for (map<int,Item>::iterator it=itemsMap.begin(); it!=itemsMap.end(); it++)
{
Bottle &item=bottle.addList();
item.read(*it->second.prop);

Bottle &idList=item.addList();
idList.addString(PROP_ID);
idList.addInt(it->first);
item.read(*it->second.prop);
}

pBroadcastPort->writeStrict();
Expand Down

0 comments on commit 4f5881a

Please sign in to comment.