Server-sent events (SSE)

Du möchtest Deinen Automower in Deine Hausautomatisierung einbinden oder eine eigene App entwicklen?
Hier wird diese offene Schnittstelle zum Robonect Hx Modul beschrieben.
Antworten
msan
Beiträge: 19
Registriert: Fr 12. Mai 2017, 12:30
Wohnort: Sweden
Mäher: Husqvarna Automower 420
Firmware des Mähers (MSW): MSW 7.xx.xx
Herstellungsjahr: 2016
Robonect-Modul: Robonect Hx (Rev.3)
Robonect Firmware: V1.0 Beta 3

Server-sent events (SSE)

Beitrag von msan » Fr 2. Jun 2017, 12:13

Instead of constantly and frequently polling the API, I would like to receive automatic updates from Robonect via HTTP connection. Maybe Server-sent events (SSE) is already implemented in Robonect?
Server-sent events is a standard describing how servers can initiate data transmission towards clients once an initial client connection has been established. They are commonly used to send message updates or continuous data streams to a browser client and designed to enhance native, cross-browser streaming through a JavaScript API called EventSource, through which a client requests a particular URL in order to receive an event stream.

msan
Beiträge: 19
Registriert: Fr 12. Mai 2017, 12:30
Wohnort: Sweden
Mäher: Husqvarna Automower 420
Firmware des Mähers (MSW): MSW 7.xx.xx
Herstellungsjahr: 2016
Robonect-Modul: Robonect Hx (Rev.3)
Robonect Firmware: V1.0 Beta 3

Re: Server-sent events (SSE)

Beitrag von msan » Di 6. Jun 2017, 07:12

I strongly miss this feature. Maybe something similar already has been developed to supply the Robonect Android App with a stream of data. Pure speculation though...

swedela
Beiträge: 1
Registriert: Mo 12. Jun 2017, 18:44
Wohnort: Halmstad
Mäher: Husqvarna Automower 330X
Firmware des Mähers (MSW): MSW 7.xx.xx
Herstellungsjahr: 2015
Robonect-Modul: Robonect Hx (Rev.4)
Robonect Firmware: Pre 1.0

Re: Server-sent events (SSE)

Beitrag von swedela » Fr 16. Jun 2017, 22:15

i would love to have support for websocket.
In stead of opening and closing single requests a websocket is a dual directional pipe saving resources in both ends.

https://developer.mozilla.org/en-US/doc ... ockets_API

Antworten

Zurück zu „API für Robonect® Hx“