A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By Toshi Bass
#10509 Hi .. I wanted to try your uMessenger but I am having a problem (I am a noob to arduino and lua and well everything really) so here's were I am at:
1/ I successfully uploaded the arduino sketch and have the OLED connected it says Booting up....
2/ I successfully uploaded the lua programs and when I reset whilst connected via serial I get:

NodeMcu 0.9.2 build 20141219 powered by Lua 5.1.4
::MSG::uMessenger#Connecting to Wifi...##
> ::MSG::uMessenger#Connected. Received IP 192.168.0.76##
::MSG::uMessenger#Server up and running, awaiting messages...##

At this point I appear to be connected in STATION mode

I assume the next step is to disconnect the serial connection from the esp and link tx to rx and rx to tx from the esp to arduino ? which I did try, but here's were I have the problem, how do I get the web page working I have tried launching setup.html, I get (see attachment 1) if I enter my wifi ssid and password I get an index of the files (attchment 2) now I am stuck.

I had imagined that the esp would run in softAP mode so should I be trying to give a new ssid and password ? but it doesn't appear to working that way, am I missing something crucial ?

Thanks for any help
You do not have the required permissions to view the files attached to this post.
User avatar
By bennyborn
#10520
Toshi Bass wrote:Hi .. I wanted to try your uMessenger but I am having a problem

After receiving your wifi credentials the uMessenger should restart and try to connect to the given SSID. Maybe something critical has change in the ESP firmware since I started this project. You could try the original firmware I used to set it up which is this one.

Oh I forgot. You don't need an arduino to set it up at all. Leaving the UART connection connected to your PC is totally fine. The arduino is just there to pass certain messages to the OLED.
User avatar
By Toshi Bass
#10531 OK I re-flashed to 0.9.5 build 20150127 was originally using older firmware 0.9.2 build 20141219 but the result is exactly the same, although I am a little more confused but maybe you misunderstood me, I guess my wifi credentials are already in the esp because whilst monitoring the esp with luaUploader with the serial connection still connected to the esp, as soon as I reset I get :

SENT: node.restart()
node.restart()
> H!?????@H?3????D ???
??

NodeMCU 0.9.5 build 20150127 powered by Lua 5.1.4
::MSG::uMessenger#Connecting to Wifi...##

> ::MSG::uMessenger#Connected. Received IP 192.168.0.76##

::MSG::uMessenger#Server up and running, awaiting messages...##

So clearly the esp is connected to my wifi and is waiting to receive message ...#

But I don't know how to run the web page (so that is were I am failing)

When I try to think about it: why does the web page need to know the ssid and password doesn't it just need the ip of the esp ? so it can send a message ?>

Like I said if I launch setup.html from my pc I still get (attachment 1.jpgt) when I put in my ssid and password I get (attachment 2.jpg) nothing extra on luaUloader screen, like it doesn't receive anything (is it supposed to ?)

I understand that the arduino only passes the message from the esp to the OLED but to do that I assume I need to disconnect the tx and rx connection from the serial thing and connect rx to tx and tx to rx from the esp to the arduino so the esp can talk to the ardurino and the ardurino can talk to the OLED, I suppose I could connect the serial to the ardurino at this point but what would that get me.

So to sum up I think my fail point is not knowing how to get the web page working, I expected something like the green page you show on your original post, I think the esp is working fine but I cannot send a message from it to the arduino because the web page does not work, so I do not know if the arduino / OLED work (other than the OLED does say Booting up .... all the time.

Hope all that doesn't confuse you as much as I am confused hahahah thanks for your help