{ "id": "151019", "key": "TIMOB-20169", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2015-09-08T09:24:27.000+0000", "priority": null, "labels": [], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T19:55:54.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "Ti.UDP 1.2.0 : https://github.com/appcelerator-modules/ti.udp/releases/tag/ios-1.2.0\r\nQuestion on Q&A : https://developer.appcelerator.com/question/163579/broadcast-of-udp-module-for-ios-not-working\r\nIssue on Github: https://github.com/appcelerator-modules/ti.udp/issues/4\r\n\r\nThis code doesn't work for broadcast messages :\r\n\r\n{code}\r\nvar socket = UDP.createSocket();\r\nsocket.start({\r\n port: ...\r\n});\r\nsocket.sendBytes({\r\n data: [....,....]\r\n});\r\nsocket.close();\r\n{code}\r\n\r\nIf i add the host , the message is sent. But it's not correct for broadcast messages\r\n\r\n{code}\r\nvar socket = UDP.createSocket();\r\nsocket.start({\r\n port: ...\r\n});\r\nsocket.sendBytes({\r\n host : \"...\",\r\n data: [....,....]\r\n});\r\nsocket.close();\r\n{code}\r\n\r\n*UPDATE 1*\r\n- I \"solved\" the problem of the broadcast message in this way\r\n{code}\r\nvar socket = UDP.createSocket();\r\nsocket.start({\r\n port: ...\r\n});\r\nsocket.sendBytes({\r\n host : \"239.255.255.250\",\r\n data: [....,....]\r\n});\r\nsocket.close();\r\n{code}\r\n\r\n*UPDATE 2*\r\n- The *Ti.UDP 1.2.0* doesn't seem to work on Android", "attachment": [], "flagged": false, "summary": "Ti.UDP module, broadcast doesn't work", "creator": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "subtasks": [], "reporter": { "name": "nicolomonili", "key": "nicolomonili", "displayName": "nicolomonili", "active": true, "timeZone": "Europe/Rome" }, "environment": "Appcelerator Studio, build: *4.1.1.201507141126* , Appcelerator Studio SDK *4.1.0GA* , Apple SDK *8.4* , Ti.UDP 1.2.0 https://github.com/appcelerator-modules/ti.udp/releases/tag/ios-1.2.0", "comment": { "comments": [ { "id": "370522", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "adding https://gist.github.com/chancyWu/8349411#file-send-and-receive-a-broadcast-udp-packet-in-c-or-objective-c-L16 worked with 255.255.255.255", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-11-17T14:11:01.000+0000", "updated": "2015-11-17T14:11:01.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }