Hi all,
I've build a NODE-RED flow with the following nodes:
1 node type INJECT
1 node type MQTT_OUT connected to SCP Cloud Platform IoT with TLS v1.2
1 none type MQTT_IN connected to SCP Cloud Platform IoT with TLS v1.2
1 node type DEBUG
The node INJECT sends a message with body JSON to node MQTT_OUT wich sends a MQTTS message to SCP Cloud Cloud Platform IoT. I see the message on IoT service cockpit.
The node MQTT_IN should be in listening on topic measures/# and send the message to node DEBUG but no message is received on the node DEBUG.
Nodes MQTT_IN and MQTT_OUT are both in connected state on port 8883.
The flow is reported below.
Please let me kow how to fix the issue.
Thank you.
Best regards.
Luigi Alboino
[{"id":"29f2095.76830f6","type":"tab","label":"Scenario Predictive Arima New - Node RED","disabled":false,"info":""},{"id":"26cc1407.e5326c","type":"mqtt in","z":"29f2095.76830f6","name":"Predictive_DF_Arima_New","topic":"measures/#","qos":"0","broker":"d6943a77.d06468","x":320,"y":200,"wires":[["c2fd9c8f.e1ed2"]]},{"id":"c2fd9c8f.e1ed2","type":"debug","z":"29f2095.76830f6","name":"Messaggio MQTT2","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"payload","x":680,"y":200,"wires":[]},{"id":"70bdea82.759514","type":"inject","z":"29f2095.76830f6","name":"Device Predictive_DF_Arima_New","topic":"measures/386a6bac5ab9b137","payload":"[{\"capabilityAlternateId\":\"1701ccb4d05f3340\",\"sensorAlternateId\":\"c945befbb2737b89\",\"measures\":[{\"pieces_actual\": \"5\",\"time_forecast\": \"2019-09-04T13:30:15.123Z\",\"id_ordine\": 100000099, \"target_quantity\": 6000}]}, {\"capabilityAlternateId\":\"3f45db1218615d46\",\"sensorAlternateId\":\"c945befbb2737b89\",\"measures\":[{\"pieces_forecast\": \"7\",\"time_forecast\": \"2019-09-04T13:30:15.123Z\",\"id_ordine\": 100000099}]}, {\"capabilityAlternateId\":\"5df9154e7f90ae79\",\"sensorAlternateId\":\"c945befbb2737b89\",\"measures\":[{\"pieces_forecast_lowerbound\": \"2\",\"pieces_forecast_upperbound\": \"9\",\"time_forecast\": \"2019-09-04T13:30:15.123Z\",\"id_ordine\": 100000099}]}, {\"capabilityAlternateId\":\"e8467c8eefa7b1c1\",\"sensorAlternateId\":\"c945befbb2737b89\",\"measures\":[{\"rotate_actual\": \"400\",\"time_forecast\": \"2019-09-04T13:30:15.123Z\",\"id_ordine\": 100000099}]}, {\"capabilityAlternateId\":\"c49164248b1b3f27\",\"sensorAlternateId\":\"c945befbb2737b89\",\"measures\":[{\"rotate_forecast\": \"440\",\"time_forecast\": \"2019-09-04T13:30:15.123Z\",\"id_ordine\": 100000099}]}, {\"capabilityAlternateId\":\"0fc690e347856dae\",\"sensorAlternateId\":\"c945befbb2737b89\",\"measures\":[{\"rotate_forecast_lowerbound\": \"340\",\"rotate_forecast_upperbound\": \"540\",\"time_forecast\": \"2019-09-04T13:30:15.123Z\",\"id_ordine\": 100000099}]}]","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":340,"y":100,"wires":[["4dee48a.68b90b8"]]},{"id":"4dee48a.68b90b8","type":"mqtt out","z":"29f2095.76830f6","name":"IoT Service Preditive_DF_Arima_New","topic":"measures/386a6bac5ab9b137","qos":"","retain":"","broker":"d6943a77.d06468","x":770,"y":100,"wires":[],"inputLabels":["1"]},{"id":"d6943a77.d06468","type":"mqtt-broker","z":"","name":"IoT Service Preditive_DF_Arima_New","broker":"da04d9f0-2fa8-49b5-ad4a-1cb07b3f5073.eu10.cp.iot.sap","port":"8883","tls":"fa8a7c9f.6fc9d","clientid":"386a6bac5ab9b137","usetls":true,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"fa8a7c9f.6fc9d","type":"tls-config","z":"","name":"IoT TLS Config for Preditive_DF_Arima_New","cert":"C:\\Users\\lalboino\\Desktop\\Desktop\\Progetti_finanziati_regione_Puglia\\Device_Predictive_DF_ARIMA_NEW\\Predictive_DF_Arima_New-device_certificate_chain.pem","key":"C:\\Users\\lalboino\\Desktop\\Desktop\\Progetti_finanziati_regione_Puglia\\Device_Predictive_DF_ARIMA_NEW\\Predictive_DF_Arima_New-device_certificate_priv.pem","ca":"C:\\Users\\lalboino\\Desktop\\Desktop\\Progetti_finanziati_regione_Puglia\\Device_Predictive_DF_ARIMA_NEW\\certificate_iot_sap_CF_Exprivia.pem","certname":"","keyname":"","caname":"","servername":"","verifyservercert":false}]