sophokles73 on master
[#3442] Support Google Pub/Sub … Incorporate review findings Upd… Incorporate review findings Cod… (compare)
Good morning everyone,
I seek your advice. We have a project in which we communicate devices with Eclipse Ditto via websocket. We liked this approach because of the speed of sending telemetry updates (every few milliseconds) from devices on an already established connection.
Now we wanted to add Hono eclipse, but Hono apparently doesn't have a WebSocket adapter. How would you deal with this situation? Would you do messages go over HTTP? Would you use MQTT instead? Or is there a faster alternative for constant telemetry updates every few milliseconds? Would it be worth creating your own WebSocket adapter?
Thanks for your quick response. It has been useful to us; After reading you, we believe that the MQTT approach is the most appropriate in this case, thanks ^. ^
Yes! One of the devices that we have connected is not an embedded constrained by regarding power supply. It's "more like" an AMRs (Autonomous Mobile Robot). This device will not have problems in terms of connection or computing power, so it is feasible to use MQTT.
Thank you very much!
command///req/#
curl -i -X POST -u ditto:ditto -H 'Content-Type: application/json' -w '\n' --data '{
"water-amount": "3liters"
}' http://xxx:8080/api/2/things/org.acme:my-device-1/inbox/messages/start-watering?timeout=60
....replies
is actually the reply-id being used by Ditto. It may look strange but the Hono MQTT adapter user guide does not specify a separate replies
segment in the command topic. Are you able to actually PUBLISH a response to the command using the reply-id ending in ...replies
?
0.2.1
command/{self.tenant}/{self.deviceId}
telemetry/{self.tenant}
hono-ttd
and wait time in secondsproperties={"to": f"command/{self.tenant}/{self.deviceId}", "subject": "work“}
via above sender link