A PED entry was made with:
When observed with Debugger the PED object was as expected named entry with key ""PEDkey"
The feature was updated to contain the PED with:
Subsequently a new PED object was retrieved from the Feature:
The following confirms that the key was stored as lower case text so PED could not be retrieved using the named key unless converted to lower case
Code:
Const PEDKEY As String = "PEDkey" PED.AddNamed(PEDKEY, Join(arrPED, ","))
The feature was updated to contain the PED with:
Code:
hs.UpdatePropertyByRef(iTopRef, HomeSeer.PluginSdk.Devices.EProperty.PlugExtraData, PED)
Code:
Dim PED As HomeSeer.PluginSdk.Devices.PlugExtraData = hs.GetPropertyByRef(iTopRef, HomeSeer.PluginSdk.Devices.EProperty.PlugExtraData)
Code:
?PED.NamedKeys Count = 1 (0): "pedkey" ?PED.ContainsNamed(PEDKEY) False ?PED.ContainsNamed("pedkey") True
Comment