Coder Social home page Coder Social logo

mqttduino's Issues

Try to send JSON formatted string as MQTT message doesn't work

Hi

First, thank you. This was exactly what I was looking for and so far it's bullet proof. I want to send JSON strings as an mqtt message. i.e "1" for on and "0" for off.

It just does't publish a message at all when I try and send this. This is my code:

mqttPublish(MQTT_TOPIC2"/stat", ""1"", 0);

If I remove the quotes and send a plain 1 or 0 I have no issues but of course it isn't JSON compliant.

Any suggestions? Excuse my ignorance if it is something obvious.

Thank You

lua: init.lua:1: not enough memory

Sorry I have the same problem.
I'm working on mac and upload / format / restart ... with this tool:
https://github.com/kmpm/nodemcu-uploader

To spy and communicate with the ESP8266 (ESP-12)
I'm using the CoolTerm for Mac.

but after restart I get this error too:
NodeMCU 0.9.5 build 20150214 powered by Lua 5.1.4
lua: init.lua:1: not enough memory

Please help me on this.
I also try to format and reupload the files again.
Same error again and again :/

lua: not enough memory

When using the latest (77c3a59), I get a "lua: not enough memory". When using the previous version, it get compiled correctly.

I'm using a ESP8266-01 with NodeMCU 0.9.5 build 20150213.

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.