If you're using two Pis

On the client Pi, in the client folder, create a .env file with the following:

MQTT_BROKER_URL:mqtt://[broker pi hostname]
MQTT_BROKER_PORT: 1883

Replace [broker Pi hostname] with the hostname you created back in the Setting up a Second Raspberry Pi section.

Move the client folder to the client Pi one last time.

Now, it's time to get the code running!

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.223.21.5