feat(rcf): append init scene mechanism

feat(rcf): append callback for data loading on snapshot init
This commit is contained in:
Swann Martinez
2019-03-28 11:38:50 +01:00
parent acd9537dea
commit 1591169f66
3 changed files with 46 additions and 4 deletions

View File

@ -230,7 +230,10 @@ class RCFClient():
break
else:
logger.info("received : {}".format(rcfmsg_snapshot.key))
rcfmsg_snapshot.store(self.property_map)
for f in self.on_recv:
f(rcfmsg)
except:
await asyncio.sleep(0.001)