I have a mqtt + nodejs server for my smart home system. First , I am trying to blink a led from my mqtt + nodejs server.
I made this with nodemcu a board. I used pubsubclient.h for this, but I wanted to add more sensors and leds. Because of that, I decided to use Arduino mega + esp8266. I want to connect to my server via esp8266. The problem is I can't use pubsubclient.h with the Arduino mega + esp8266.
And I started using AT Commands to connect to a wifi. Now, I can connect to wifi, but I don't know how can I use mqtt now.
I found a library espduino, but it needs special connections.
How can I use AT commands and Mqtt for my project?