title: Arduino + esp8266 + mqtt
body: <p>I have a <code>mqtt</code> + <code>nodejs</code> server for my smart home system. First , I am trying to blink a led from my <code>mqtt</code> + <code>nodejs</code> server.</p>
  
  <p>I made this with <code>nodemcu</code> a board. I used <code>pubsubclient.h</code> 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 <code>pubsubclient.h</code> with the Arduino mega + esp8266.</p>
  
  <p>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.</p>
  
  <p>I found a library <code>espduino</code>, but it needs special connections. </p>
  
  <p>How can I use AT commands and Mqtt for my project?</p>