+49(0) 3304 522 0808 info@xenia-espresso.de

API examples

The examples are written in Object Pascal and must be adapted to the respective language/environment.

executing a script (programmed extraction)

jsonToSend.Add(‚{„ID“:“‚+inttostr(scriptID)+'“}‘);
http.Post(‚http://’+sIPAdresse+’/api/v2/scripts/execute/‘, jsonToSend);

sIPAdresse = die IPAdresse der Maschine im Netz
scriptID = die ID des Scriptes

 

stop a script

http.get(‚http://’+sipAdresse+’/api/v2/scripts/stop‘);

change machine status

jsonToSend.Add(‚{„action“:“‚+inttostr(action)+'“}‘);
http.Post(‚http://’+sipAdresse+’/api/v2/machine/control/‘, jsonToSend);

action = 0 Maschine ausschalten
action = 1 Maschine anschalten
action = 2 Maschine ECO-Modos
action = 3 Dampfboiler aus
action = 4 Dampfboiler an
action = 5 Maschine an + Dampfboiler aus
en_GBEnglish (UK)