【问题标题】:Google Cloud Datastore from embedded device in POSIX c?来自POSIX c中嵌入式设备的Google Cloud Datastore?
【发布时间】:2017-05-10 00:05:42
【问题描述】:

我设法让 Google Cloud Messaging 在嵌入式设备上使用 libcurl 使用 http 请求和“浏览器密钥”进行身份验证。 现在我想迁移到 Google Cloud Datastore 以将嵌入式设备的设置保存到云端。似乎支持 Java、Ruby、Python、NodeJS,但到目前为止,我没有发现任何可以帮助我进一步使用我所知道的东西的东西。

我可以从用纯 C 语言编写的现有应用程序访问 Cloud Datastore 吗?

【问题讨论】:

    标签: c embedded google-cloud-datastore google-cloud-platform


    【解决方案1】:

    虽然我们没有 C 的客户端库,但我们有一个可供您调用的 RESTful API (documentation),因此应该可以用 C 编写您自己的简单库,以便从嵌入式设备。

    如果您担心安全性(因为有人可能冒充您的嵌入式设备并直接访问您的 Cloud Datastore 实例,我建议您查看 Cloud Endpoints (documentation)。它为您提供了一种简单的方法来在 App Engine 之上生成一个 RESTful API。然后您可以在嵌入式设备中使用您的自定义 API,并将 App Engine 用作控制对数据库的访问的代理/数据验证层。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-01-22
      • 2013-05-18
      • 2021-10-31
      • 2012-06-23
      • 1970-01-01
      相关资源
      最近更新 更多