Ok, so here's my kludge to solve my problem... Only prerequisite is that Node Red be configured for a hard storage named "file" ....
[
{
"id": "9d134f23.f85e1",
"type": "tab",
"label": "Persistent Sender",
"disabled": false,
"info": ""
},
{
"id": "280f05b7.c7de22",
"type": "function",
"z": "9d134f23.f85e1",
"name": "Resend Stored",
"func": "if(msg.payload == \"Resend\"){\n msg = context.get(\"Data\",\"file\");\n}\nelse{\n context.set(\"Data\",msg,\"file\");\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 420,
"y": 120,
"wires": [
[
"6b74b2d.b196a4c"
]
]
},
{
"id": "e4b756c.22ef528",
"type": "inject",
"z": "9d134f23.f85e1",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "SomeData",
"payload": "",
"payloadType": "date",
"x": 190,
"y": 100,
"wires": [
[
"280f05b7.c7de22"
]
]
},
{
"id": "6b74b2d.b196a4c",
"type": "debug",
"z": "9d134f23.f85e1",
"name": "",
"active": false,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 610,
"y": 120,
"wires": []
},
{
"id": "5f3c1e63.c80df8",
"type": "inject",
"z": "9d134f23.f85e1",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "3",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"payload": "Resend",
"payloadType": "str",
"x": 430,
"y": 70,
"wires": [
[
"280f05b7.c7de22"
]
]
},
{
"id": "5d4a2b10.77697c",
"type": "inject",
"z": "9d134f23.f85e1",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "SomeData",
"payload": "0",
"payloadType": "num",
"x": 220,
"y": 140,
"wires": [
[
"280f05b7.c7de22"
]
]
},
{
"id": "d0d3811.ab1d28",
"type": "inject",
"z": "9d134f23.f85e1",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "OtherData",
"payload": "1",
"payloadType": "num",
"x": 220,
"y": 180,
"wires": [
[
"280f05b7.c7de22"
]
]
}
]
Hope other newbies like me can find it handy....
Regds
Ed