Skip to content

Prepare Sparkplug Session Node

Industrial/Sparkplug

Advance persisted bdSeq and prepare the MQTT Last Will; install it before connecting with a clean session

sparkplug_prepare_sessionindustrial
Inputs2
Outputs2
Security exposureUnrated
Packageindustrial

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

No score metadata has been set for this node yet.

Input Pins

2

Input

Execution
exec_in

Run this operation

Configuration

Struct
request

Inputs and configuration

PrepareSessionPrepareSession5 fields
group_idstringrequired
node_idstringrequired
previous_bd_seqinteger:uint8required

Persist the returned bd_seq and supply it here on the next MQTT connection.

format uint8min 0max 255
timestamp_msinteger:uint64required
format uint64min 0
metricsArray<value>required
Schema enforced

Output Pins

2

Done

Execution
exec_out

Operation completed

Result

Struct
result

Operation result

PreparedSessionPreparedSession2 fields
stateEdgeStaterequired
group_idstringrequired
node_idstringrequired
bd_seqinteger:uint8required
format uint8min 0max 255
next_sequenceinteger:uint8required
format uint8min 0max 255
bornbooleanrequired
+2 more fields
last_willWireMessagerequired

Install this MQTT Last Will before connecting with clean_session=true.

topicstringrequired
payloadArray<integer:uint8>required
itemsinteger:uint8array item
format uint8min 0max 255
qosinteger:uint8required
format uint8min 0max 255
retainbooleanrequired

Node Info

Internal name
sparkplug_prepare_session
Category
Industrial/Sparkplug