UDP 预览不可以发送吗?
const app = getApp()
Page({
startDiscovery:function()
{
console.log('startDiscovery')
var that = this;
that.udpSocket = wx.createUDPSocket();
that.udpSocket.bind(3333);
setInterval(function(){
that.udpSocket.send({
address: '192.168.2.106',
port: 9999,
message: "hello world!"
});
},2000);
}
})