[ https://issues.apache.org/jira/browse/EDGENT-375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15859522#comment-15859522 ]
Dale LaBossiere commented on EDGENT-375: ---------------------------------------- Initial results are that WIoTP iot-java:0.1.5 DeviceClient.publishEventOverHTTP() doesn't work. Seems to not form the correct URL (omits port 1883) and the request fails with a 307. Awaiting response to [iot-java:79|https://github.com/ibm-watson-iot/iot-java/issues/79]. May have to upgrade to 0.2.2 first. Creating a JIRA for that. > Want a Watson IoTP device connector that uses HTTP > -------------------------------------------------- > > Key: EDGENT-375 > URL: https://issues.apache.org/jira/browse/EDGENT-375 > Project: Edgent > Issue Type: Improvement > Components: Connectors > Reporter: Dale LaBossiere > Assignee: Dale LaBossiere > > Use case: I want to be able to write an Edgent device application that > connects to the IBM Watson IoT Platform and publishes device events using its > HTTP based protocol. That would eliminate the need for my Edgent device to > have an MQTT client installed. > The current Watson IoT Platform connector, > [IotpDevice|https://github.com/apache/incubator-edgent/blob/master/connectors/iotp/src/main/java/org/apache/edgent/connectors/iotp/IotpDevice.java] > supports the MQTT based protocol. > Adding support for an HTTP-based WIoTP connector would likely involve > creating a class like "IotpHttpDevice implements IotDevice". The IotDevice > "events()" methods would use WIoTP HTTP publishing mechanism. WIoTP does not > support subscribing to device commands using HTTP so the IotDevice > "commands()" method would be documented to throw > UnsupportedOperationException. -- This message was sent by Atlassian JIRA (v6.3.15#6346)