logo elektroda
logo elektroda
X
logo elektroda

ESP8266 LUA: Is it possible to operate server and client simultaneously?

panbosman 2577 3
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16481240
    panbosman
    Level 12  
    Hello.
    I am setting up a mixed mode of operation:
    Code: Lua
    Log in, to see the code
    .
    I start the server:
    Code: Lua
    Log in, to see the code
    .
    Server operation
    server:
    Code: Lua
    Log in, to see the code


    Now I have a question. Can I add client support to this configuration:
    Code: Lua
    Log in, to see the code
  • ADVERTISEMENT
  • #2 16491726
    Piotrek_I
    Level 12  
    There are not many examples on the web for the ESP8266 in LUA, which is a shame. I'm struggling with similarly simple things myself because the documentation is there, but the examples are extremely laconically written. But it's nice that someone is trying to do something in lua, because using Arduino or Raspberry for ESP8266 is often too much.

    Your code doesn't work for me, but I have an ESP that works both as an http server (switching on relays) and also connects to other ESPs by downloading the temperature (actually a page with the temperature written on it) from them (from the http server). The download is done via tmr.alarm .

    The readout is something like this:
    Code: Lua
    Log in, to see the code
    .
    This is not my code, I even downloaded it from I don't know where but it was the output code for what I carved;)

    EDIT:
    Or this code:
    Code: Lua
    Log in, to see the code
    .
    from here: Link
  • ADVERTISEMENT
  • #3 16492256
    henryxxl
    Level 26  
    How do you gentlemen rate Lua against the arduino ide? I personally am not too fond of arduino.
  • #4 16492546
    Piotrek_I
    Level 12  
    I use the Arduino IDE often for AVRs and for some small projects it is ok, but for ESP/LUA the ESPlorer is without comparison better.
ADVERTISEMENT