Community
cancel
Showing results for 
Search instead for 
Did you mean: 
AFila1
Novice
1,654 Views

promblem Http server on Intel Edison

Hi all,

I tried to manage Edison by http. Download jquery-1.11.3.min.js. I made file index.html

 

<<span class="hljs-title" style="color: # 63a35c;">html><<span class="hljs-title" style="color: # 63a35c;">body>

<<span class="hljs-title" style="color: # 63a35c;">title>Rotation</<span class="hljs-title" style="color: # 63a35c;">title>

<<span class="hljs-title" style="color: # 63a35c;">script src="jquery-1.11.3.min.js">

</<span class="hljs-title" style="color: # 63a35c;">script> <<span class="hljs-title" style="color: # 63a35c;">script> function showVal(val) { $("# val").text('Value='+val); } function left() { $.getJSON( "/left", function( data ) { showVal(data['value']); } ) ; }

</<span class="hljs-title" style="color: # 63a35c;">script> <<span class="hljs-title" style="color: # 63a35c;">a onclick="left();"> <<span class="hljs-title" style="color: # 63a35c;">img src="rotate_ccw.png"/> </<span class="hljs-title" style="color: # 63a35c;">a> </<span class="hljs-title" style="color: # 63a35c;">body></<span class="hljs-title" style="color: # 63a35c;">html>

<span c...

4 Replies
Sergio_A_Intel
Employee
68 Views

Hi,

What node.js and mraa versions are you using? Make sure you are using the latest. Also what button are you referring to, some button on the Arduino expansion board or do you have an external push button connected to the Edison?

Have you tried to use the ps command each time you push the button? It may provide some insight on why your app crashes after the 5-6 time.

Sergio

AFila1
Novice
68 Views

Hi Sergio!

Thanks for your reply! The Idea of the project is very simple. Here is one Edison board. On this board I create listener of port 1337.

When I connect to this board 192.168.2.25:1337 it open one web page. There is one button Left. I push it and my browser sends queries to the Edison and Edison put into console the text "it's working". If I click this button again - still running. If I click 5-6 times this button the Edison will stop to write to console "it's working". If I reload the page in the browser - the board starts to work again. It looks like browser starts to cache this operation. I don't understand how to solve it

 

Andrey

 

Sergio_A_Intel
Employee
68 Views

Are you sure you are using the latest image, what is the output of configure_edison –version? Have you tried to run dmesg on the .js file?

Sergio

Carlos_M_Intel
Employee
68 Views

Hi Andrey,

Do you have updates on this?

Is this happening in all the web browsers or is it just with one?

Are you running something else in your board?

Regards,

Charlie

Reply