Web socket connection test for proglove
After configuring the Web socket server it will display the communication between the connectivity device and scanner on the topic in debug console.
Configuration steps
Configur the web socket node with your intended server ip
To send a command from the gateway to a scanner the various command and their sample json can be found on this page Supported streams . copy desired command json from this link and paste it into inject node. Remember to update the device serial number accordingly before testing. You can find your gateway and device serial numbers from the data on debug console of any event.
[{"id":"8a9c6f4.527fd9","type":"tab","label":"websocket flow","disabled":false,"info":"before deplying make sure you have configured Websocket Server and webSocket Client"},{"id":"b5ec1162.e843c","type":"debug","z":"8a9c6f4.527fd9","name":"Debug Output of websocket","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":630,"y":460,"wires":[]},{"id":"80bb4673.3ad878","type":"websocket out","z":"8a9c6f4.527fd9","name":"WebSocket Client","server":"c0ac22d.25e53e","client":"","x":590,"y":580,"wires":[]},{"id":"ecb0ddb3.e26f7","type":"inject","z":"8a9c6f4.527fd9","name":"Send Test Message","topic":"","payload":"{ \"api_version\": \"1.0\", \"event_type\": \"scan\", \"event_id\": \"02114da8-feae-46e3-8b00-a3f7ea8672df\", \"time_created\": 1546300800000, \"scan_code\": \"Hello, World!\", \"device_serial\": \"MDMR000000064\", \"gateway_serial\": \"PGGW000000058\" }","payloadType":"json","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":310,"y":580,"wires":[["80bb4673.3ad878"]]},{"id":"5c1a1060.c7612","type":"comment","z":"8a9c6f4.527fd9","name":"WebSocket Test Flow","info":"","x":320,"y":380,"wires":[]},{"id":"919d9e42.dc7a","type":"comment","z":"8a9c6f4.527fd9","name":"Display message","info":"","x":260,"y":620,"wires":[]},{"id":"d6b29c36.94374","type":"websocket in","z":"8a9c6f4.527fd9","name":"WebSocket Server","server":"","client":"","x":310,"y":460,"wires":[["b5ec1162.e843c"]]},{"id":"c0ac22d.25e53e","type":"websocket-listener","z":"","path":"","wholemsg":"true"}]