Industrielle styresystemer - Wiki
Bruk av MQTT, igjennon HiveMQ i javascript
https://www.hivemq.com/blog/implementing-mqtt-in-javascript/
https://www.hivemq.com/article/ultimate-guide-on-how-to-use-mqtt-with-node-js/
Msquitto commands:
Topic:
Gamestate = tall (string)
Players = string med tall eks. 000001
Variables sendt:
playersBinary example: "10010"
playerCount example : "3"
roundnumber example : "2"
Possible variables:
- currentbet
- playersturn
MQTT package documentation: https://www.npmjs.com/package/mqtt
MQTT Explorer: https://mqtt-explorer.com/ for visualization and de-bugging.
Example with some of our topics/variables.
Our MQTT-IP: 192.168.2.101
FInal overview of all the variables