The Open Source Vending Group Project/OsvGateway: Difference between revisions

From Nottinghack Wiki
Jump to navigation Jump to search
No edit summary
Elsen (talk | contribs)
No edit summary
Line 22: Line 22:
|CL||WG||VEND:<status>:<reason>
|CL||WG||VEND:<status>:<reason>
|}
|}
[[Category:Projects]]

Revision as of 14:05, 12 December 2014

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 STATUS:<MAC address>
CL WG STATUS:<state>
WG CL STOCK:<MAC address>:<hopper>
CL WG STOCK:<hopper>:<status>
WG CL VEND:<MAC address>:<hopper>
CL WG VEND:ACK
CL WG VEND:<status>:<reason>