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.
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.