Avatar for aluedeke

aluedeke

Member since Mar 2018 • Last active Mar 2018
  • 1 conversations
  • 1 comments

Most recent activity

  • in ESP8266
    Avatar for aluedeke

    i am trying to receive dns sd broadcast messages on my esp8266 using the following code:

    var wifi = require("Wifi");
    
    wifi.connect("awifi", {password:"apwd"}, function(err){
        console.log(err);
        const dgram = require('dgram');
        const srv = dgram.createSocket('udp4');
        srv.addMembership('224.0.0.251');
        srv.bind(5353, '0.0.0.0', bound => {
            console.log('bound');
            function onDatagram(msg, info) {
                console.log('memory');
            }
    
            bound.on('message', onDatagram);
            bound.on('close', function(err) {
              console.log('s:close', err);
            });
        });
    });
    
    wifi.stopAP();
    

    unfortunately i get only the following warning:

    WARNING: Recv 869 too long (UDP)!

    any ideas how to overcome this? I assume its a problem about max datagram message size?

    • 1 comment
    • 1,419 views
Actions