Giter Club home page Giter Club logo

Comments (2)

JonEllis1234 avatar JonEllis1234 commented on May 27, 2024

Hi. Just flashed my wifi stick for first time as well, but managed to recreate your problem because my MQTT server requires authentication, and so the line
if (MqttClient.connect("Growatt", MQTT_TOPIC, 1, 1, "{"Status": "Disconnected" }"))
needed to be replaced with
if (MqttClient.connect("Growatt", "mqttusernm", "mqttpassword", MQTT_TOPIC, 1, 1, "{"Status": "Disconnected" }"))
At which point once compiled the web server springs into life. (obvious mqttusernm and mqttpassword would be whatever your user/pass are set to in MQTT. Hope that's the same as your issue and it fixes it. Please say if it does. Obviously I would suggest that long term a variable should be used and put in a nicer place in the file.

from openinvertergateway.

jhaake2308 avatar jhaake2308 commented on May 27, 2024

hi @JonEllis1234
you kicked me into the right direction. Until today I didnt realize, that a running mqtt-server is necessary for this to run. I had in mind to just grep the necessary information by the built-in json-frontend. Fortunately my whole setup @ home is built up in node-red so it was not a real task to get a mqtt-server running. And see, the website is coming right up after mqttserver says "one client connected". Thanks for your help!

BTW, I first tried to get mqtt out of the way by setting MQTT_SUPPORTED to 0, but it seems this variable is not honored, as the sketch is throwing variuos errors concerning the mqtt-packetsize and so on. Commenting out was also not really successful, so setting up the mqtt-server was the better way :)

Thx again, smooth thing here
Julius

from openinvertergateway.

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.