Coder Social home page Coder Social logo

Comments (5)

knolleary avatar knolleary commented on May 24, 2024

Good question @ymaglaras

@tomn46037 could you give some pointers on what lib you used on the esp8266? I can get that added to the docs.

from pubsubclient.

tomn46037 avatar tomn46037 commented on May 24, 2024

I used the latest version of the Arduino IDE (1.6.5) and I installed the ESP8266 toolchain with the Board manager (Tools->Boards->Boards Manager) then search for ESP8266. Mine shows that I have "ESP8266 Community version 1.6.5-947-g39819f0".

With this library, the ESP8266 Wifi uses the "client" interface the same as the ethernet shield.

I created a new repo with my test code. It should compile and connect to the MQTT server. It should subscribe and you should be able to publish to it. Again, this is very rough.. but it does compile and will connect to the MQTT server and publish/subscribe and print incoming messages. The repo is at

https://github.com/tomn46037/ESP8266-AdafruitIO-PubSubClient-DeskLamp

from pubsubclient.

knolleary avatar knolleary commented on May 24, 2024

Thanks @tomn46037

@ymaglaras : does that answer you questions?

from pubsubclient.

knolleary avatar knolleary commented on May 24, 2024

Closing as the info from Tom answers the questions. At some point, I'll add as ESP8266 example to the library - once I get some hardware of my own to test with

from pubsubclient.

kylegordon avatar kylegordon commented on May 24, 2024

Using a clean install here, and the ESP8266 board isn't available by default. You need to go into Arduino Preferences, and add an appropriate board manager url to the list, such as https://github.com/toddtreece/esp8266-Arduino/releases/download/1.6.4/package_esptest_index.json
or http://arduino.esp8266.com/stable/package_esp8266com_index.json
Only after doing this was the ESP8266 option available in the Board Manager.

Source info from esp8266/Arduino#13

from pubsubclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.