Chat about current Lua tools and IDEs

User avatar
By Thomas Jakober
#59534 I am using Esplorer and I manage to upload and run lua files on my ESP-12E board. However some command buttons do not work:
  • Save to ESP: i get
    Code: Select all> ,]+),([^,]*)")]==]);
    ...
    stdin:1: unexpected symbol near ','
  • - Send to ESP:
    Code: Select allstdin:1: '=' expected near ')'
  • Commands :
    - Scan Network:
    Code: Select allimport network;nic = network.WLAN(network.STA_IF);nic.scan()
    [*]stdin:1: '=' expected near 'network'
I think there is something missing but I could'nt figure out what. Could someone give me a hint?

Thomas
User avatar
By Sille
#59683 Hey,

I have to say that I´m not really a profssional but I guess the routines behind the buttons are wrong. The same would happen if you write a bad code and upload it to the esp e.g. in your code are some letters missing or something like that than the esplorer respond with "stdin:1: '=' expected near ')'" . I can imagine that some basics in the programming syntax changed but the esplorer wasn´t updated after this. I recommend not using the buttons. Try to get used to the lua-modules and use the commands from the doc´s (https://nodemcu.readthedocs.io/en/master/en/)

best regards

Sille
User avatar
By marcelstoer
#59946
Thomas Jakober wrote: - Scan Network:
Code: Select allimport network;nic = network.WLAN(network.STA_IF);nic.scan()
[*]stdin:1: '=' expected near 'network'


That sounds like you selected 'MicroPython' instead of 'NodeMCU' in "Settings" -> "Select firmware".