0

So i'm trying to use the PubSubClient Library on my arduino mini pro, but I'm connecting to the internet via wifi using an ESP8266.

Using a mini means I have to use software serial to connect to the ESP, but I've ran into a problem. I can't find anywhere such as ESPWiFiClient to use with the examples from the PubSubClient library where they use EthernetClient.

Is there any available libraries that can emulate EthernetClient with an ESP module over software serial?

asked Jan 16, 2016 at 22:22
1
  • Is there a specific reason for using the pubsubclient library? There are other mqtt libraries out there which do work with the esp8266... I do however completely agree with the answer below that ditching your Arduino and uploading the Arduino code to your ESP8266 is a much better approach. Commented Jan 19, 2016 at 9:01

1 Answer 1

1

Ditch the Pro Mini. Upload your Arduino code to the ESP directly. There's a GitHub repo with the details. ESP for Arduino IDE has a ton of libraries. I'm sure you'll find it there.

But if you're bent on using the Pro Mini, you'll have to use AT commands over serial to control it or flash a custom firmware into the ESP using Lua or something. And Pro Mini can use its hardware serial just like a Uno does.

Nick Gammon
38.9k13 gold badges69 silver badges125 bronze badges
answered Jan 18, 2016 at 22:15

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.