功能
loadWifiTracking() {
var policy = {
Wifi: {
interval: 3000,
signalStrengthThreshold: 15,
accessPointFilters: [{SSID:"wifiName"}]
}
};
var triggers = {
Wifi: {
DwellInSide: {
type: "DwellInside",
areaAccessPoints: [{SSID: 'wifiName'}],
callback:function() {alert("Thank You For Being Here!");},
dwellingTime: 5000
},
Connected: {
type: 'Connect',
connectedAccessPoint:[{SSID: 'wifiName'}],
callback: function() {alert("Reached Here");}
},
}
};
WL.Device.startAcquisition(policy, triggers, acquisitionFailure);
var acquisitionFailure = {
Wifi : wifiFailure,
};
function wifiFailure(positionError) {
alert("pe" + positionError);
}
}
它抛出一个错误:
The WIFI Connect trigger with network specification: [{"SSID":"wifiName"}] will have no affect, since this network do not appear in WIFI acquisition policy.
任何想法确切的问题是什么?请帮忙。