Connecting using your own website
- This topic has 9 replies, 2 voices, and was last updated 9 years, 4 months ago by msandersmay10.
-
AuthorPosts
-
November 11, 2013 at 4:46 PM #942msandersmay10Participant
Ok. I’ve tried your two sets of advice that you posted on torib and have had no luck. I’ve set the IP address to “local host” and have also tried your second option of changing it to my IP address. And yes I can get the breakout java server to connect to your getting started webpage for the trial. What do I need to do?
thanks
MattNovember 11, 2013 at 5:02 PM #944soundanalogousMemberCan you explain your setup in detail? Are you trying to connect an Arduino to your computer but run an application from an external webserver? Are you attempting to interact with the application from a computer or mobile device (phone or tablet)?
November 11, 2013 at 5:06 PM #945msandersmay10ParticipantYes. I’m trying to connect the arduino to my computer and run the application from an external webserver and I’m trying interact with a computer.
November 11, 2013 at 5:31 PM #946msandersmay10ParticipantI basically downloaded you Breakout_v0.3.0 zip file and then used dreamweaver to edit the simple_led file then uploaded it to my webpage. I don’t get the “client” connnected notice in the breakout server
November 11, 2013 at 5:37 PM #947soundanalogousMemberIn your application, when you create an instance of the IOBoard object, you need to pass “localhost”. This is because you will be running Breakout Server on your local computer. You’ll load your application from the external url and when it loads it will get the arduino connection locally. Don’t add the port number to the path of the external server.
You need to run Breakout Server on your local computer. Make sure Breakout Server is running before you load the external web application.
November 11, 2013 at 5:40 PM #948soundanalogousMembercan you send me the url of your application so I can view the source?
November 11, 2013 at 5:49 PM #949msandersmay10Participantsure its http://matthewandteresalove.co.nf/ it might have the port number removed but I’ve tried it with and without.
November 11, 2013 at 5:57 PM #950soundanalogousMemberchange the following: var arduino = new IOBoard(host, 8777);
to: var arduino = new IOBoard(“localhost”, 8777);
You also need to upload Breakout.min.js and jQuery (or point to the jQuery cdn). See lines 42 and 43 in the code. I’m not seeing these files on your server. Copy Breakout.min.js from Breakout/dist/ to the same folder as the simple LED application on your server and change line 42 to:
And copy jquery.min.js from Breakout/examples/libs/ to the same location as Breakout.min.js and the simple led app. Change the jQuery line (43 I think) to:
November 11, 2013 at 7:11 PM #951msandersmay10ParticipantHi,
Can you take a look at my code again. I’ve added your suggestions but am still having errors.
Thanks
Matt
November 11, 2013 at 7:40 PM #952msandersmay10ParticipantHi,
I downloaded your website and uploaded that to mine to see if it would work and it did. So I’m just going to look at your code to figure it out. Thanks
Matt
-
AuthorPosts
- The forum ‘Forum’ is closed to new topics and replies.
