arduino / node-red-contrib-arduino-iot-cloud

A Node-RED plugin to integrate Arduino IoT Cloud
https://create.arduino.cc/iot
Other
7 stars 10 forks source link

Add the send as device option to output node #52

Closed mirkokurt closed 10 months ago

mirkokurt commented 10 months ago

This PR introduces the possibility, for the output node, to send a payload to the cloud "As a device". In this new use case, the use can check the option "Send as device" in order to use the Arduino API to mock a message sent by the device.

This new option covers the use case of a node-red workflow used to update the dashboard without a device actually connected to the cloud (we can call it, node-red device simulation).

IMPORTANT NOTE: If the option is checked the message is sent "As if the message is sent directly from the device", so if there is an actual device connected, the device will not receive the message. So we have to keep this mode optional.

d-beamon commented 10 months ago

For some reason I see the whole files changed. Is there any modification on the line feed?