You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hmm, looks like there aren't specific docs on it - I should add that. UDP is handled in the same way as is done for Node.js.

    As an example: https://github.com/espruino/Espruino/blo­b/master/tests/test_dgram_socket.js

    let client = dgram.createSocket('udp4');
    client.on('message', function(msg, info) {
      console.log(">"+JSON.stringify(msg));
      console.log(">"+JSON.stringify(info));
      // you probably don't care about this
    });
    // to send a midi note, you do:
    client.send('your data', port, 'servername');
    
About

Avatar for Gordon @Gordon started