Yun Rev 2 + Luci web config - How to disable or move to other port

Hello,

Brand new to the forum and Arduino.

I have a Yun Rev2, configured, online etc, and I've created my first few sketches. I was having difficulty connecting to the web server on the device to run my initial code (turning LEDs on/off via buttons on web page) All attempts to navigate the either the ETH or WiFi IP of my device bring up the luci web conf pages, and not my desired web page created from the uploaded sketch.

I've tried to set the port in the sketch to 8080 for example, or anything aside from 80, and when trying to open that ip/port, I get an error for server not found.

I've spent a few hours searching for how to disable or assign the luci editor to another port, or to see why I cannot browse my sketch from a different port, so I'm at a bit of a loss.

I've attempted this with multiple sketches now, so I believe it's either an issue of even with a completion of upload showing, the sketch isn't actually running, or the luci web tool is taking priority.

I did add an 8g SD card via the guide on this site, so maybe it's possible my sketch is not loading to the correct partition to be run?

I'm a web dev by trade, but this is my first dive into actual programming with the arduino platform, but can often find my way if pointed in the right direction.

Thanks!

All attempts to navigate the either the ETH or WiFi IP of my device bring up the luci web conf pages, and not my desired web page created from the uploaded sketch.

As you failed to post that sketch I must assume the error is in that sketch.

I've attempted this with multiple sketches now, so I believe it's either an issue of even with a completion of upload showing, the sketch isn't actually running, or the luci web tool is taking priority.

The sketch you upload doesn't have access to the Ethernet port or the WiFi network directly, that is handled by the Linux part of the board. It might be your expectations are wrong or the sketch is wrong. As we don't know both we cannot help further.

Thanks - It was not an issue of the sketch per-say, more a topic of the examples were not providing some of the very basic fundamentals like, where to access the uploaded sketch at (for those interacting via HTTP)

I've got it figured out now and moving forward well! Once I pick up a few more electrical goodies, I'll have my proof of concept put to the tests for function and reliability!

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.