wondering about this field in the sma.
in all the example protocols I have, all values = 1.
what is the intended use of 'referenced' versus 'added' states?
is there an example protocol that makes use of this functionality?
I'm assuming you're referring to comments about the fields sma.StatesDefined and sma.Manifest
'Referenced' means that a state has been referenced in a different state's declaration. In the first call to the AddState() function, I can say (in pseudocode)
StateChangeConditions: BNC1High, Go to MyOtherState
Here, I Added MyState to the state machine. I Referenced MyOtherState, but I haven't added it yet. That will happen in a future call to AddState.
When you send a state machine, the system uses sma.StatesDefined and the manifest to make sure you eventually defined all of the states you referenced.
Nice Topic and nice information