I had a moment of inspiration and created the following subflow of 2 nodes hanging of a status node dedicated to the BLE node to retry if a poll of a sensor fails, all well and good..
[{"id":"ced8af2a.93103","type":"status","z":"6985a570.16355c","name":"Miflora Node Status","scope":["4a0c1ada.67cbc4"],"x":119,"y":89.00000953674316,"wires":[["702de5c3.28725c"]]},{"id":"702de5c3.28725c","type":"switch","z":"6985a570.16355c","name":"Failure test ","property":"status.text","propertyType":"msg","rules":[{"t":"eq","v":"no data","vt":"str"},{"t":"eq","v":"not found","vt":"str"}],"checkall":"true","repair":true,"outputs":2,"x":351.00008392333984,"y":173.00001335144043,"wires":[["510563fc.cd16ec","9dbd95b.0b23968"],["510563fc.cd16ec","9dbd95b.0b23968"]]},{"id":"510563fc.cd16ec","type":"change","z":"6985a570.16355c","name":"Prepare to Re-Poll","rules":[{"t":"set","p":"payload","pt":"msg","to":"mac","tot":"flow"},{"t":"set","p":"address","pt":"msg","to":"mac","tot":"flow"},{"t":"set","p":"trycount","pt":"flow","to":"$flowContext('trycount') +1","tot":"jsonata"},{"t":"set","p":"status","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":412.88677978515625,"y":255.26175117492676,"wires":[["9dbd95b.0b23968","7589b6eb.44a7e8","4a0c1ada.67cbc4"]]}]
However what if a sensor is out of range, faulty, or suffering from a very low battery?? a limit on the number of retry attempts would be wise..
so i tried to insert this node after the above nodes before the retry message is reinserted into the ble node to limit the retries, but instead it kills the flow dead??
[{"id":"7589b6eb.44a7e8","type":"switch","z":"6985a570.16355c","name":"Limit Retries","property":"trycount","propertyType":"flow","rules":[{"t":"gte","v":"3","vt":"num"}],"checkall":"true","repair":true,"outputs":1,"x":574.8906478881836,"y":304.79297065734863,"wires":[["4a0c1ada.67cbc4","9dbd95b.0b23968"]]}]
3 hours past bedtime on a school night.. please help .. what have i missed???