- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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...
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page