【问题标题】:In programming for Estimote Beacons, how do we retrieve the actual name of the Beacon?在为 Estimote Beacon 编程时,我们如何检索 Beacon 的实际名称?
【发布时间】:2015-10-06 13:46:29
【问题描述】:

我尝试了 Beacon.getName(),但它只返回“EST”,即使我将信标命名为其他名称。我一定会用手机上的远程应用程序检查信标,以确保名称已更改。

跟进:

我应该使用什么命令来检索信标上的标签和地理位置?它似乎不在 API 中

【问题讨论】:

    标签: java android sdk estimote


    【解决方案1】:

    Beacon 类的 getName 方法为您提供信标本身所宣传的名称,即包含在广告包中的名称。它与您在运行任何“原始”蓝牙扫描仪时看到的名称相同,例如,nRF Master Control Panel,而 Estimote 信标始终是“EST”或“estimote”。

    如果您对 Estimote Cloud 中配置的信标名称感兴趣,则需要改用 Estimote Cloud 类的 fetchBeaconDetails 方法。

    要让后者工作,请记住call EstimoteSDK.initialize first,并使用您可以在 Estimote Cloud 中生成的“应用 ID”和“应用令牌”进行设置:https://cloud.estimote.com,“应用”部分。 (或者只使用应用生成器中的“空白”模板,它会生成一个空白的 Android Studio 项目,其中已经添加了 Estimote SDK,并且已经放入了应用 ID 和令牌。)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-17
      相关资源
      最近更新 更多