-
Notifications
You must be signed in to change notification settings - Fork 1
Setting up communication
espenakker edited this page Dec 27, 2017
·
1 revision
Once the project has been successfully opened, CDP Studio should look something like this.
Select to deploy on your network, this should be the same network as the one your phone will be connecting to later.
Click and enter the MQTT Broker component. Make sure that the ListenAddress is "0.0.0.0", this will allow it to listen for MQTT clients on all its interfaces. We will connect to the broker using both the wireless network interface and the local interface "127.0.0.1".
In our Application we also have a MQTT Client that connects directly to the local interface "127.0.0.1". This MQTT Client is used by the snake game to listen in on the commands that we will send from our phone.