PublishingOffset: Update Python generation script
Following #946 (closed), the "STATIC CONFIG" pubsub tools have not been updated to take into account new XML option (publishOffset
and SOPC_WriterGroup_Set_PublishingOffset
)
Update scripts/generate-s2opc_pubsub-static-config.py
:
- Modify
SOPC_PubSubConfig_SetPubMessageAt
with an additional int32 param :
static SOPC_DataSetWriter* SOPC_PubSubConfig_SetPubMessageAt(SOPC_PubSubConnection* connection,
uint16_t index,
uint16_t messageId,
uint32_t version,
uint64_t interval,
int32_t offsetUs,
SOPC_SecurityMode_Type securityMode)
{
(...)
if (offset >=0)
{
SOPC_WriterGroup_Set_PublishingOffset(group, offset / 1000);
}
And add publishOffset
retrieved from XML in call to SOPC_PubSubConfig_SetPubMessageAt
Edited by Jérémie Chabod