Devel: Share object between modules.

Discussions about Z-Way software and Z-Wave technology in general
Post Reply
Nander2
Posts: 8
Joined: 08 Nov 2016 12:37

Devel: Share object between modules.

Post by Nander2 »

Hi everyone.

What is the best way to share non device related data between module?

In the presence auto learning module i'm working on, there is a table of 336 values that represents the presence probability of each half hour of a week (2 * 24 * 7 = 336). I would be able to expose a service to other modules. This service should return the presence ("on" or "off") according to a Date typed var passed trought parameters.

How could i manage to do that? Is there an exemple in some other modules and which one?
User avatar
PoltoS
Posts: 7601
Joined: 26 Jan 2011 19:36

Re: Devel: Share object between modules.

Post by PoltoS »

Best way is to use namespaces
Post Reply