Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Network State

Chris Grimmett edited this page Feb 19, 2016 · 2 revisions

This is the format of the network state which is generated by the gameserver, and saved into redis

{
	"meta": {
		"version": 1,
		"type": "D3vice Network",
		"home": "Doom Squad Airsoft Test Net"
	},
	"availableInventory": {
		"nodes": [{
			"name": "Vehicle Pyro 1",
			"defaultProfile": "pyro",
			"nodeID": "ae34bb9303",
			"hardware": [{
				"type": "output",
				"version": 1,
				"name": "smoke screen 1",
				"gpio": 2
			}, {
				"type": "output",
				"version": 1,
				"name": "loud report 1",
				"gpio": 3
			}, {
				"type": "output",
				"version": 1,
				"name": "loud report 2",
				"gpio": 4
			}, {
				"type": "output",
				"version": 1,
				"name": "loud report 3",
				"gpio": 6
			}]
		}, {
			"name": "Strategic Keypad 1",
			"defaultProfile": "keypad",
			"nodeID": "38dd38020f",
			"hardware": [{
				"type": "keypad",
				"version": 1,
				"name": "Keypad Remote",
				"gpio": 2
			}]
		}]
	}
}
Clone this wiki locally