startDiscovery:function()
{
console.log('startDiscovery')
var that = this;
var i = 0,j;
const udp = wx.createUDPSocket()
udp.bind(7777)
while(1)
{
var now = Date.now();
for(i = 0;i<40000;i++)
{
for(j = 0;j<40000;j++)
{
}
}
var end = Date.now();
console.log("timer = " + (end-now))
udp.send({
address: '255.255.255.255',
port: 8848,
message: 'hello,how are you'
})
}
}