Send Event¶
The Send Event node sends the output from the previous node to the Kafka topic REALTIME_MODEL_EVENT_TOPIC
as device event information. You can subscribe to the topic to view the message.
Node Type¶
EnOS.
Input and Output Ability¶
This node has multiple entry points and 2 exit points (success/failure).
Limitations¶
- The input msg must be in EnOS standard data format, with the metadata containing the asset ID, device key, product key, and organization ID.
Samples¶
Input Sample¶
{
"MetaData": {
"messageType": "PostEvent",
"assetId": "assetId",
"deviceKey": "deviceKey",
"productKey": "productKey",
"orgId": "yourOrgId",
"ts": "1622187757883"
},
"Body": {
"modelId":"Inverter_Demo_LY",
"Error":{
"Error":"Warning"
},
"productKey":"productKey"
}
}
Output Sample¶
{
"MetaData": {
"messageType": "PostEvent",
"assetId": "assetId",
"deviceKey": "deviceKey",
"productKey": "productKey",
"orgId": "yourOrgId",
"componentResult": "Success",
"ts": "1622187757883"
},
"Body": {
"modelId":"Inverter_Demo_LY",
"Error":{
"Error":"Warning"
},
"productKey":"productKey"
}
}