Giter Club home page Giter Club logo

nodemcu-web-ide's People

Contributors

dirkus411 avatar joysfera avatar lchen198 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nodemcu-web-ide's Issues

Restart function does not work

First of all I would like to say that you have done a realy great work. Thanks for that! However, while playing around with the functions I found out that if you trigger the "Restart" function the "Please wait" message shows up but the esp itself does not restart. Any idea how to fix it? Thanks and greetings

New Nodemcu/LUA Firmware Builds require different TMR syntax

First things: ide.lua is fantastic!

Symptom:
click "run" on any LUA or LC file in nodemcu webide
esp8266 panics and reboots
serial interface shows
PANIC: unprotected error in call to Lua API (?:0: attempt to call field 'alarm' (a nil value))

Firmware used
NodeMCU 3.0.0.0 built on nodemcu-build.com provided by frightanic.com
branch: master
commit: 310faf7fcc9130a296f7f17021d48c6d717f5fb6
release: 3.0-master_20190907
release DTS: 201909070945
SSL: false
build type: float
LFS: 0x0
modules: adc,bit,cron,dht,file,gpio,http,mqtt,net,node,ow,pwm2,rtcmem,rtctime,sntp,struct,tmr,uart,wifi
build 2020-01-04 20:32 powered by Lua 5.1.4 on SDK 3.0.1-dev(fce080e)


solution:

there is only 1 alarm in the ide.lua
change the surrounding code
from
tmr.alarm(0, 1000, tmr.ALARM_SINGLE, function()
node.output(nil)
if result then
local outp = tostring(result):sub(1,1300) -- to fit in one send() packet
result = nil
sen = sen .. outp
end
sen = sen .. "


<a href="?edit">[Edit File] <a href="?run">[Run Again] <a href="/">[Main Page]"
sck:send(sen)
end)
to
ideTmr = tmr.create()
ideTmr:register(1000, tmr.ALARM_SINGLE, function()
node.output(nil)
if result then
local outp = tostring(result):sub(1,1300) -- to fit in one send() packet
result = nil
sen = sen .. outp
end
sen = sen .. "
<a href="?edit">[Edit File] <a href="?run">[Run Again] <a href="/">[Main Page]"
sck:send(sen)
end)
ideTmr:start()


once again, thanks for sharing this wonderful work.

Implementing your code in other code

Hi,

I'd like to implement your code in a project I'm working on. Since this project also requires a TCP server, I have had to incorporate your code into the other script I already had. Can I share this edited code online? It will always be completely open source, free of charge, etc. I'm basically just using the code in the conn:on("receive", and conn:on("sent", sections, and applying them elsewhere.

Tim

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.