【问题标题】:best way to deploy files to cumulocity devices?将文件部署到累积设备的最佳方法?
【发布时间】:2016-06-29 15:24:35
【问题描述】:

使用 cumulocity java-agent 是否可以在管理页面上将文件(即 zip)上传到 FILES REPOSITORY,然后将此文件推送到我的所有设备或指示所有设备提取此文件?

【问题讨论】:

    标签: cumulocity


    【解决方案1】:

    您可以使用软件管理流程(在设备管理中)。

    您将文件上传到软件管理。之后,您可以使用软件插件中的文件。这将为包含文件的直接链接的设备创建一个操作。

    在设备上,您只需在此链接上调用 GET。目前没有为此实施特定的服务。

    如果您谈论的不是软件而是一般的文件,我会推荐一个类似的过程。向设备发送包含文件下载链接的操作。

    【讨论】:

      【解决方案2】:

      我认为 SW 安装程序只是解决方案的一半,因为 java-agent 目前可能会损坏(cumulocity-linux-agent-7.29.0)。经纪人说:

      [CumulocityLongPollingTransport-scheduler-3] 警告 c8y.lx.agent.JavaSoftwareDriver - 格式错误的 URL: common-notification-6.17.0.jar

      [CumulocityLongPollingTransport-scheduler-3] 警告 c8y.lx.agent.JavaSoftwareDriver - 格式错误的 URL:commons-io-2.4.jar

      [CumulocityLongPollingTransport-scheduler-3] 警告 c8y.lx.agent.JavaSoftwareDriver - 格式错误的 URL: svenson-1.3.8-6.17.0.jar

      该操作实际上没有完整的URL只有文件名:

      { operations: [ { ... status: "PENDING", description: "Update device software.", c8y_Software: { rest-representation: "rest-representation-7.29.1.jar", tinkerforge: "tinkerforge-2.1.2.jar", ...

      我只能通过在外部托管文件并在管理页面上使用这样的语法来让 SW 安装程序与 java 代理一起工作:

      NAME: tinkerforge-driver VERSION: http://my_ip/tinkerforge-driver-6.17.0.jar FILE: http://my_ip/tinkerforge-driver-6.17.0.jar

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2016-12-22
        • 1970-01-01
        • 1970-01-01
        • 2020-02-13
        • 2015-11-06
        • 2012-01-12
        • 1970-01-01
        • 2011-03-12
        相关资源
        最近更新 更多