The TrafficLight represents the status of the device. It will be shown in the Device Management Service as color of the device and with a short status message in the information tab. The transfer of the TrafficLight works the same way as the transfer of Time Series Data. You should send a json object with the following information to the input of the ProficloudDevice-Node.
msg = {};
msg.payload = {"trafficlight": {"color": 2, "msg": "Some problem"}};
return msg;
The color is encoded as number. The value 0 is green, 1 is orange and 2 is red. In the “msg” field the status massage takes place. After triggering this message you can check the result in the DeviceManagement-Service.