Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to

Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website

  • I see four protocols on the publisher page: BACnet、HTTP、Modbus、Twilio

    I want to use UDP to send data out.
    I think he should be in the HTTP protocol option.
    But I can't find it. It seems Only TCP in there.

    Is there a way to send data using UDP protocol?

  • @cuihe said in is there have UDP in publisher?:

    I want to use UDP to send data out.

    Why? Presumably there is a service that you are trying to interact with? We need more information than just 'UDP'.

  • Hi cuihe,

    You would be able to instantiate a in a script, for the most general ability to use UDP. But with details of why may come a better answer, as Jared suggests.

  • @jared-wiltshire @phildunlap thank you for reply!
    I know that mango provides a completely superior function to UDP.
    But the reality is that an old system only accepts control signals in the form of UDP, and queries its database to determine whether the control effect has been achieved.

    my old system use these code(c#), if you need to skip:

    //your code here
    private void opendoor(string DoorNumber)
                string strDestinationIP = System.Configuration.ConfigurationSettings.AppSettings["DoorContoler"];
                string strMessage = string.Empty;
                if (DoorNumber.Equals("MainDoor"))
                    strMessage = System.Configuration.ConfigurationSettings.AppSettings["MainDoorOpen"];           
                if (strMessage.Equals(string.Empty)) return;
                UdpClient udpClient = new UdpClient();
                IPAddress destinationIP = IPAddress.Parse(strDestinationIP);
                IPEndPoint destination = new IPEndPoint(destinationIP, 18001);
                byte[] message = HexStringToByteArray(strMessage);
                udpClient.Send(message, message.Length, destination);

  • OK got you. Here's a meta data source you can import and use, you will have to change the dataPointXid of the context point to an actual point in your system. Script formatted below -

          "name":"UDP test",
          "name":"UDP string sender",
            "script":"var value = input.value;\nif (value == null) {\n    return value;\n}\n\nvar socket = new;\ntry {\n    var address =\"\");\n    var port = 1241;\n    \n    var valueBytes = value.getBytes(java.nio.charset.StandardCharsets.UTF_8);\n    var packet = new, valueBytes.length, address, port);\n    \n    socket.send(packet);\n} finally {\n    socket.close();\n}\n\nreturn value;",
          "deviceName":"UDP sender",

    Actual script

    var value = input.value;
    if (value == null) {
        return value;
    var socket = new;
    try {
        var address ="");
        var port = 1241;
        var valueBytes = value.getBytes(java.nio.charset.StandardCharsets.UTF_8);
        var packet = new, valueBytes.length, address, port);
    } finally {
    return value;

  • I think I understand. Thank you very much!