OpenGarage Forums Comments, Suggestions, Requests MQTT and OG Reply To: MQTT and OG

#324

DynamoBen
Participant

OK things are now functional; the rearchitecting of Blynk threw things off a bit.

This is the latest version from Github with MQTT added. The only files that change are main.cpp and you need a modified Arduino parent file (it needs the PubSubClient include).

The MQTT server IP is at the top of main.cpp along with the topic, you will want to update those (if you are doing access control username/password are there too). If “Button” is sent on the topic then the door will be activated; this is hardcoded right now so if you need to change it it’s in “void mqtt_callback.”

It’s worth noting that I’ve hard coded the MQTT port number to 1883 (the default), if you are using a different port you will need to change that too.

Enjoy and let me know if you have any questions.

  • This reply was modified 4 years, 6 months ago by DynamoBen.
  • This reply was modified 4 years, 6 months ago by DynamoBen.
Attachments:
You must be logged in to view attached files.