Most recent activity
-
-
Hi All,
I'm simply trying to send a ping request to my router with ESP8266.ping function, my callback gets called but the result is always negative as if my router is not alive but it is. I have the latest nodeMCU board with espruino 1v85. Any idea?The code I'm running :
var ESP8266=require("ESP8266"); ESP8266.ping("192.168.1.1", function(e){ console.log(e); });
and the result :
{ "totalCount": 0, "totalBytes": 0, "totalTime": 0, "respTime": 0, "seqNo": 0, "timeoutCount": 0, "bytes": 0, "error": -1 }
-
-
hi @allObjects , thanks for your quick response and recommendations. I just want to clarify two things.
The code below runs perfectly, but it does not run in the form I described above.
var toggle=1; setInterval(function() { toggle=!toggle; digitalWrite(D5, toggle); console.log(toggle); }, 1000);
As you assumed, I write my code in the right pane and upload it. Then I say save() in the left pane. I can see onInit() gets called and the console logs true, false.... I mean everything works as expected except digitalWrite()
-
The following code seems valid but the led is not blinking. The console output is correct. It is as if digitalWrite is not working.
When I run the code without save() and onInit() functions, inside simple setInterval the led is blinking. Any iade?var toggle=1; function start(){ setInterval(function() { toggle=!toggle; digitalWrite(D5, toggle); console.log(toggle); }, 1000); } function onInit() { start(); }
-
I tried the baud rate 57600 unfortunately with no success :( In the meantime; I played with arduino IDE and everything is working. I do not really understand why I can't get Espruino worked, which is a little bit discouraging...
BTW; when I try to connect, web IDE is giving the following messages. Does it ring a bell?>>> Connecting... Set Slow Write = true Unable to open device (connectionInfo=undefined) ERROR: Unable to open device (connectionInfo=undefined) >>> Connection Failed.
Update :
I have solved my problem. It seems Web IDE needs some special authorizations when it is working under linux. I can't still make it connect to the port but it works via TCP port. I followed the tutorial here . -
The following is my output. It still does not work despite the fact that I'm connected to different router right now. Obviously there is bug somewhere, which is very discouraging