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.

Moderator: Lampi

Antworten
msan
Forum-Nutzer
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 »

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
Forum-Nutzer
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 »

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
Forum-Anfänger
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 »

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“