• I am using the UART.js library and iskraJS microcontroller .
    Espruino Web IDE is used to program this microcontroller

    document.body.onclick =  function()
    	{
    		UART.connect(
    			function(connection) 
    			{
    			    if (!connection) throw "Error!";
    			    connection.write("var on = false;setInterval(function() {on = !on;LED1.write(on);}, 5000);", function(){ });
    		  	}
    		)
    	}
    
  • You might need a newline (\n) at the end of the command you're sending?

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Why is the code not sent to the iskraJS microcontroller using the UART library?

Posted by Avatar for user149415 @user149415

Actions