AndroidNativeBeacons返回500错误与MobileFirst平台 [英] AndroidNativeBeacons returning a 500 error with MobileFirst Platform

查看:618
本文介绍了AndroidNativeBeacons返回500错误与MobileFirst平台的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

打算实施监控,并与IBMMobileFirst一个Android应用程序测距信标。

Intending to implement the monitoring and ranging of the beacons in an Android Application with IBMMobileFirst.

<一个href=\"https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-0/advanced-topics/working-with-beacons/beacons-in-android/\"相对=nofollow>链接到程序和示例项目

也用Android的灯塔图书馆中的应用。

Also used the Android Beacon Library for the Application.

成功安装三星Galaxy Tab 3 APK,但选项加载信号灯和触发器返回一个500错误,因此不能够检测到附近的信标。

Successfully installed the apk in Samsung Galaxy Tab 3 , but the option to Load Beacons and Triggers is returning a 500 error and thus not able to detect the nearby beacons.

错误 - WLBeaconsANdTriggersJSONStoreManager.loadBeaconsAndTriggers()失败:
WLResponse [invocationContext = NULL,reponseText = ,,状态= 500] WLFailResponse [ERRORMSG =意外的错误code occured.Please再试,错误code = UNEXPECTED_ERROR]

error is - WLBeaconsANdTriggersJSONStoreManager.loadBeaconsAndTriggers() failed: WLResponse[invocationContext=null,reponseText=,,status=500]WLFailResponse[errorMsg=Unexpected errorCode occured.Please try again.,errorCode=UNEXPECTED_ERROR]

该wlclient.properties文件似乎需要一些修正,

The wlclient.properties file seems to need some amendments ,

wlServerProtocol = http
wlServerHost = 
wlServerPort = 10080
wlServerContext = /BeaconsNative/
wlAppId = AndroidNativeBeacons
wlAppVersion = 1.0
wlEnvironment = Androidnative
wlUid = wY/mbnwKTDDYQUvuQCdSgg==
wlPlatformVersion = 7.0.0.00.20150227-0916

此外,

在信标登记是必须要做的,它利用了(PUT)REST API为信标探测。但不是很清楚什么是使用REST API的,用于检测最近的信标设备。

The registration of the beacons is to be done , it makes use of the (PUT) Rest Api for the Beacons Detection. But not very clear that what is the use of the Rest Api , for detecting the nearest Beacon to the device.

在与MobileFirst信号灯的原生Android项目,此API返回500错误,而且的确不是检测到邻近信标。

In the native android project of Beacons with MobileFirst , this Api returns a 500 error , and indeed not detecting the Nearby Beacons.

有人能帮助上述配置,或者一些功能,其中可以去错了.Thanks。
 帮助是AP preciated。

Can someone help with the above configuration, or some functionality where could be going wrong .Thanks. Help is appreciated.

推荐答案

Android客户端需要连接到服务器进行采样工作。

The Android client needs to connect to the server for the sample to work.

对于这一点,在wlclient.properties wlServerHost应与MFPF服务器的IP填充。

For this , in wlclient.properties wlServerHost should be populated with your MFPF server's ip.

检测的信标发生在客户端(在设备上),而不是在服务器。 REST API进行用于与服务器注册客户特定的信标数据。例如,商店或位置,其中所述信标被部署。
的REST API的用于管理存储在服务器中的信标数据。

Detecting the beacon occurs at the client side (on the device) and not at the server. The REST API is used to register customer-specific beacon data with the server. For example, the store or location where the beacon is deployed. The REST APIs are used to manage the beacon data stored in the server.

在这里更多细节 -

More details here -

<一个href=\"https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-0/advanced-topics/working-with-beacons/\" rel=\"nofollow\">https://developer.ibm.com/mobilefirstplatform/documentation/getting-started-7-0/advanced-topics/working-with-beacons/

<一个href=\"http://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.apiref.doc/apiref/r_restapi_beacons_put.html\" rel=\"nofollow\">http://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.apiref.doc/apiref/r_restapi_beacons_put.html

<一个href=\"http://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.apiref.doc/apiref/r_restapi_beacon_triggers_put.html\" rel=\"nofollow\">http://www-01.ibm.com/support/knowledgecenter/SSHS8R_7.0.0/com.ibm.worklight.apiref.doc/apiref/r_restapi_beacon_triggers_put.html

这篇关于AndroidNativeBeacons返回500错误与MobileFirst平台的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆