lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

How to run an user program on ESP8266 Wifi module

Tue May 10, 2016 7:30 pm

I don't want the original firmware changed.

I just want to run an user program (C code) after the system got booted up.

how to do that?

Heater
Posts: 15837
Joined: Tue Jul 17, 2012 3:02 pm

Re: How to run an user program on ESP8266 Wifi module

Tue May 10, 2016 7:40 pm

As far as I know you cannot.

At least not without reflashing it with some kind of bootloader/operating system that can download your compiled C code and run it. If there is such a thing.

You can reflash the thing to enable you to run your own Lua or Javascript code. For example Espruino: http://www.espruino.com/EspruinoESP8266

Google it.
Memory in C++ is a leaky abstraction .

User avatar
DougieLawson
Posts: 38882
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: How to run an user program on ESP8266 Wifi module

Tue May 10, 2016 7:45 pm

Try posting your question on the ESP8266 forum. This one is for RASPBERRY PIs and not ESP8266s.

This might be a good starting point: http://randomnerdtutorials.com/tutorials-esp8266/
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
Cancelor
Posts: 775
Joined: Wed Aug 28, 2013 4:09 pm
Location: UK

Re: How to run an user program on ESP8266 Wifi module

Tue May 10, 2016 8:12 pm

I would recommend the Arduino IDE but it will wipe the ESP each time you load... no loss there ;-)
Can't find the thread you want? Try googling : YourSearchHere site:raspberrypi.org

raspifriend
Posts: 3
Joined: Sat May 07, 2016 10:47 am

Re: How to run an user program on ESP8266 Wifi module

Wed May 11, 2016 10:54 am

use NodeMCU, ESP-Flasher and ESPlorer ... then you have a standalone
ESP-Module which can monitor digital inputs, control digital outputs and
the data can be easy accessed using the Web-Server which is part of
NodeMCU.

The script-language of NodeMCU is lua, but it is easy to learn. With
experience in perl, php or javascript the lua script language can be learned
within half an hour.

Return to “General discussion”