保存Estimote室内位置的位置时出错代码500

时间:2017-08-08 09:05:54

标签: ios swift swift3 estimote indoor-positioning-system

我有3个室内位置信标包和一个电子邮件地址,我在保存位置估计云时收到错误消息....错误信息如下: -

保存位置时出错:可选(错误域= ESTRequestBaseErrorDomain代码= 500" Estimote Cloud无法处理请求。" UserInfo = {NSLocalizedDescription = Estimote Cloud无法处理请求。,NSLocalizedRecoverySuggestion =检查原因字段以验证发生了什么类型的错误。})

以下是我的实施: -

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
locationBuilder.setLocationName("my space")

locationBuilder.setLocationBoundaryPoints([
    EILPoint(x: 0.00, y: 0.00),
    EILPoint(x: 0.00, y: 9.85),
    EILPoint(x: 4.56, y: 9.85),
    EILPoint(x: 4.56, y: 0.00)])

locationBuilder.addBeacon(withIdentifier: "mybeaconid1", atBoundarySegmentIndex: 0, inDistance: 3.5, from: .leftSide)
locationBuilder.addBeacon(withIdentifier: "mybeaconid2", atBoundarySegmentIndex: 1, inDistance: 1.1, from: .rightSide)
locationBuilder.addBeacon(withIdentifier: "mybeaconid3", atBoundarySegmentIndex: 2, inDistance: 5.7, from: .leftSide)
locationBuilder.addBeacon(withIdentifier: "mybeacon4", atBoundarySegmentIndex: 3, inDistance: 3, from: .rightSide)

locationBuilder.setLocationOrientation(50)

let location = locationBuilder.build()

ESTConfig.setupAppID("myAppId", andAppToken: "myAppToken")

let addLocationRequest = EILRequestAddLocation(location: location!)

addLocationRequest.sendRequest { (location, error) in
    if error != nil {
        print("Error when saving location: \(String(describing: error))")
    } else {
        print("Location saved successfully: \(String(describing: location?.identifier))")
    }
}

beaconManager.requestAlwaysAuthorization()

return true
}

1 个答案:

答案 0 :(得分:0)

我已经就这个问题询问了Estimate Support,并且由于服务器上的某些问题而发生此错误,现在这就像魅力一样。