Bluemix Presence Insights通用连接器无法正常工作

时间:2016-04-20 14:36:59

标签: ibm-cloud connector presenceinsights

我在Personal Insights控制台中创建了一个通用连接器。此连接器分配给区域层,站点名称。

我用pi-swagger页面发送消息。我正在使用POST /conn-generic/v1/tenants/{tenantCode}/orgs/{orgCode连接器。

消息是下一个

  "data": [
    {
      "deviceId": "11:11:22:33:44:66",
      "timestamp": 1461146935,
      "sensorCode": "2v7hq0bnz",
      "sensorRssi": -50
    }
  ]

使用响应代码202.我使用传感器策略,但我无法在我的区域中看到此次访问。

此消息位于Presence Insights中,因为在“操作 - 分析”部分下,我可以看到成功。我没有任何错误。

1 个答案:

答案 0 :(得分:2)

我相信这可能会对提供的RSSI和PI传感器文档中设置的RSSI阈值有所影响。 "Error: [$compile:multidir] Multiple directives [ngController, parent (module: app)] asking for new/isolated scope on: <div parent="" parent-model="vm.model1" ng-controller="Controller as vm"> 必须大于PI传感器文档属性中定义的阈值,否则将丢弃该事件。

您提到支持您已将阈值调整为-30,现在正在发送事件的sensorRssi为-10。 PI管道中有5分钟的缓存期,如果您在更新传感器文档的阈值后立即发送事件,则可能无法访问。到目前为止,缓存已经失效并且检索到更新的传感器文档。你能否发送另一个事件并验证你是否看到了访问?