David has implemented his functions that allow this, and I have a rudimentary system established to make use of them. Currently the way that I have it set up (subject to change of course) is this:
config.js has a constant that determines whether or not we want subscriptions.
If this constant is set to true:
When an object (datacell, log, camera) is created, it adds the path to a global array in the pagesettings object
This array is passed via david's function and tells wsBroadcast which data it wants to subscribe to
From then on, data for that item is brought in
so an example of this would be :
A4751>sensors>temperature is added to the page
"/A4751/sensors/temperature" is pushed to the array
David's function runs once with the updated array
data for that sensor and all other previous sensors comes in when possible
David has implemented his functions that allow this, and I have a rudimentary system established to make use of them. Currently the way that I have it set up (subject to change of course) is this:
If this constant is set to true:
so an example of this would be :
If the constant is set to false: