The Open Source Vending Group Project/OsvGateway: Difference between revisions
Jump to navigation
Jump to search
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..." |
m Danspencer101 moved page Project:The Open Source Vending Group Project/OsvGateway to The Open Source Vending Group Project/OsvGateway over redirect |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 7: | Line 7: | ||
{| class="wikitable" | {| class="wikitable" | ||
!From!!To!!Message | !From!!To!!Message | ||
|- | |||
|WG||CL||STATUS:<MAC address> | |||
|- | |||
|CL||WG||STATUS:<state> | |||
|- | |- | ||
|WG||CL||STOCK:<MAC address>:<hopper> | |WG||CL||STOCK:<MAC address>:<hopper> | ||
Line 12: | Line 16: | ||
|CL||WG||STOCK:<hopper>:<status> | |CL||WG||STOCK:<hopper>:<status> | ||
|- | |- | ||
|WG||CL||VEND | |WG||CL||VEND:<MAC address>:<hopper> | ||
|- | |- | ||
|CL||WG||VEND | |CL||WG||VEND:ACK | ||
|- | |- | ||
|CL||WG||VEND | |CL||WG||VEND:<status>:<reason> | ||
|} | |} | ||
[[Category:Projects]] |
Latest revision as of 11:59, 5 February 2019
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> |