-->
Page 1 of 1

MQTT and ESP8266, memory issues but a nice protocol for IoT

PostPosted: Mon May 11, 2015 11:02 pm
by hbouzas
Got the vibration detection board working with MQTT. This was really an ordeal given that the memory issues with LUA and the ESP8266 are really frustrating. Its trial and error. Finally and after stripping the code to the bare minimum, i.e., remove all the fancy web page interface to the board configuration, things got working pretty good.

I installed my own MQTT broker on a MacBook, Mosquitto, and got it to work without major issues.

MQTT is really great for IoT, of course if you have a broker running or want to go through a public broker, otherwise my ad-hoc messaging solution I think it is a bit easier for home projects. But again, MQTT is the way to go if you want to control several devices, send and receive various commands, etc.
On my future boards I will offer ad-hoc messaging or MQTT check http://www.horaciobouzas.com

Re: MQTT and ESP8266, memory issues but a nice protocol for

PostPosted: Tue May 19, 2015 12:49 am
by thakshak
I don't have an esp8266 but ordered from aliexpress 1month ago esp-12 esp-12e esd-12 waiting for them...
From your post i understand that you have insufficient memory.
There are new modules available with 4MB flash, latest is esd-12e, ordered it yesterday. See the below url.
It might help you
http://www.aliexpress.com/item/Large-capacity-ESP8266-flash-4M-serial-WIFI-industry-milepost-type-ESD-12/32264809287.html

Re: MQTT and ESP8266, memory issues but a nice protocol for

PostPosted: Wed May 20, 2015 8:00 am
by plucker
Hi Thakshak,

I think Hbouzas is referring to the ram not the flash.

I had some ram issue when trying to post to thingspeak with lua...

Plucker

Re: MQTT and ESP8266, memory issues but a nice protocol for

PostPosted: Thu May 21, 2015 2:16 am
by Artem Pastukhov
Try to compile the script before run, an then run script.lc instead script.lua