The Open Source Vending Group Project/OsvGateway

From Nottinghack Wiki
Revision as of 12:16, 5 January 2013 by James (talk | contribs) (Created page with "The Web Gateway (WG) communicates with the Connection Layer (CL) using the osvgateway protocol over a websocket. The WG initiates the websocket when it boots, and initiates a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The Web Gateway (WG) communicates with the Connection Layer (CL) using the osvgateway protocol over a websocket. The WG initiates the websocket when it boots, and initiates any messages.

Commands are case-sensitive. This is version 1 of the protocol

A typical conversation would go like this, more details below:

From To Message
WG CL STOCK:<MAC address>:<hopper>
CL WG STOCK:<hopper>:<status>
WG CL VEND:<vend id>:<MAC address>:<hopper>
CL WG VEND:<vend id>:ACK
CL WG VEND:<vend id>:<status>:<reason>