-->
Page 1 of 1

Non Lua - project - control gpio

PostPosted: Thu Mar 26, 2015 3:22 am
by alon24
Hi all,

I started with NodeMCU on this device, and it is truely a wonder, until you start reaching the memory issues, when that happens, you kinda drag around.

My idea is to have my esp (12) bootup as both server and client, it would try to connect for like 30 seconds, and it does connect to mqtt and just function.

The other part is that it should have a small webserver that will allow it to show a config panel that
1. Allow to change ssid and password
1.a search for ip list and display in a combo.
1.b allow you to enter user and pass
1.c check if it can connect
1.d. save to device and connect to ap.
2. a reset wifi data button
3. reset device button.
4. show gpio state (realtime) *2 pins
5. allow to change gpio state *2 pins

show data to small oled screen
optional:
connect to rtc clock ds3021 i think

I want to do this in c code because in lua I tried and I reached something like 10 filles and memory was a nightmare. and eclipse is so good at doing a proper project organization.

So how do I begin?
I have the oled code and mqtt should be working too
I need to know what to use for webserver?

So I found this:
https://github.com/scottjgibson/esp8266 ... 0demo/user

is this current?? can you suggest something better?

I started looking at esphttpd
viewtopic.php?f=6&t=376&hilit=httpd

It compiles for me in eclipse, but I am not able to run it, it needs more work on my part to understand the issues i am facing (it not showing any data or working ap)

Should esphttpd be the base for my code here?
Insights would be appreciated