Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

setBroadcast but nothing is received #19

Open
felipecerutti opened this issue Jan 19, 2017 · 0 comments
Open

setBroadcast but nothing is received #19

felipecerutti opened this issue Jan 19, 2017 · 0 comments

Comments

@felipecerutti
Copy link

felipecerutti commented Jan 19, 2017

Dear,

I have installed the 1.3.0 version of this plugin and setBroadcast TRUE in my code, but when I tried to send Broadcast message UDP using 255.255.255.255 or 0.0.0.0 or 192.168.1.255 or 192.168.255.255 I didn't receive on APP this return, so If I send directly to the IP of smartphone I can see the return. Somebody got the same problem? I'm putting the code bellow.

    chrome.sockets.udp.create(function(createInfo) {

        chrome.sockets.udp.setBroadcast(createInfo.socketId, true, function(result) {
            if (result === 0) {
                console.log("Broadcast Listening");
            }

        });

        chrome.sockets.udp.bind(createInfo.socketId, '0.0.0.0', 35000, function(result) {
            console.log(result);
        });
        

        chrome.sockets.udp.getInfo(createInfo.socketId, function(socketInfo) {
            console.log(socketInfo);
        });


        addReceiveListeners();
    });
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant