tinyMQTT changed slightly for the Arduino Portenta Ethernet Vision Shield
https://github.com/hsaturn/TinyMqtt
https://github.com/hsaturn/TinyMqtt
You basically need 3 Portentas to test that this works.
MQTT-broker-ethernet MQTT-Client-publish-ethernet MQTT-Client-Subscribe-ethernet
For the Portneta that is set as the MQTT broker you might need to access your home or school router (access Point) to allow the MQTT Broker to have outside access.
Typically to set a static IP address, instructions something like this
- Log into router.
- Go into advanced setup.
- Under IP Address pick DHCP Reservation.
- Under select MAC Address drop down menu, look for the printer's MAC address. ...
- Drop down to selecting (manually enter IP address) and pick a vacant IP.
- Then apply to save changes.