udp

UDP (User Data Protocol) folder explained
/etc/motorcortex/config/
└── udp
    ├── udp.link.json
    └── udp.packets.json 

udp.link.json

Define udp linking applied if udpComm module inside config.json is enabled.

udp.packets.json

Defines outgoing and incoming packets between applications, required is that the incoming and outgoing packets have the same name and data type.

For example Application 1 and 2 have established a UDP connection. Application 1 is sending commandID to Application 2. The packets are configured as followed:

Application 1:

 "Outgoing": {
    "commandId": {
      "Id": 1,
      "Type": "uint32"
    }
 }

Application 2:

 "Incoming": {
    "commandId": {
      "Id": 1,
      "Type": "uint32"
    }
 }