A simple button (app) on phone to switch on

Hi, I gues there is somwthing about that, I'm looking for an app able to display a button on any Android (possibily also iphone) or more buttons, in particular I'm searching an app able to scan the LAN segment (looking for Arduino broadcast for example, or sending a broadcast and wait Arduindo to reply at) and showing me quickly the button without setting, specify IP and all this. Anyone can download the app, connect to wifi, discover device, open it and find the button, is that reality?
If not, what app you suggest to reduce ar minumum the settings? Thank you!

There are lots of lan scanners available, but no buttons. It sounds like what you want is an IoT solution. Check out the Arduino Cloud, probably the multi dot menu beside your avatar.

thanks, I would avoid to use cloud because I need it only working on LAN, and if there is any failure with internet, I'll avoid it.
Maybe I can adapt a working solution for my needs, may you please tell me which IoT programs working with Arduino you know?
Chances are, using MQTT, but I still need to identify the available MQTT server inside LAN, by the android app

Sorry, don't understand. Maybe rough out some code that you think you need and then folks might be able to add to it.

Welcome!
That is an i Interesting project that could be a lot of fun but realize we are not a free design or code writing service. We will be happy help out with your design and or code but first you have to make an attempt to design it, write it, post it and explain what is not working properly.

If there is hardware as there is in this case it is always best to post links to technical information as there are many versions of the same or different items. Since we cannot see your project, my eyes are to weak, you need to post using the language of electronics, an annotated schematic, (best) or a clear picture of a drawing. Pictures never hurt. Frizzing diagrams are not considered schematics here, they are wiring diagrams, they may be great for assembly lousy for troubleshooting.

If this is not feasible there is a for hire section where somebody would happily do it for a fee.

Hi mates, thanks for answering :slight_smile:
I would be with you extremely clear and avoid any misunderstanding, try to summarize at maximum the issue I'm trying to solve, I need an app which works at least on Android (better on iOS too) that is able to discover on the LAN the server (Arduino) and give then chance to interact/control with Arduino.
I don't think there is necessary to draw scheme and specification about this, I suppose anyone can realize in mind my goal.

To be more exaustive I try to analyze what I've found, in particular what turns the choice off:
Arduino IoT cloud: it requires internet, it requires a log in
MQTT dashboards: require URL and build up the Dashboard on phone
Web server on Arduino, hosting page with controls: looks good way, but needs to type an URL
RemoteXY seams do the job about graphical, I didn't understand the WiFi connection how it works, anyway it's paid service and I would focus on free now, if possible

So far you have been very ambiguous with your secret project. You want answers but with out data the answers will probably be wrong.

In case your wondering I am not clairvoyant and need proper information to come up with an appropriate answer. There may be others that are.

Sorry what is not clear? I need a button on my phone screen, the app should recognize arduino available on the same LAN by broadcasts, on arduino simply pin D0 turn HIGH/LOW according to the button status.
This idea is useful for any puropose, it's just necessary to find a way to recognize, connect, visualize graphic button stored on Arduino (as RemoteXY does):

Actually the simpleast way I can do something similar and for free is to type on telephone browser the http link of Arduino web server.
I'm looking for something automatic. Does it exist already?

Sorry, not a clue what you want. However if you plan on doing an iOS app, that will take years to get approved.
I think you have said you do NOT want to use any IoT since it requires internet and login.
You also do NOT want MQTT for some reason.
You then express interest in having a web server on an Arduino but you don't want to type a URL.
That pretty much rules out using anything that uses the internet or AP. How will your magic button know anything, let alone your stated objective of somehow being able to determine that another Arduino is nearby.
What you say you want is impossible. Try to explain again.

1 Like

MIT App Inventor
(enjoy)

Thank you, this is an approach is an idea, but there is needed to create app for it available in store, impossible then, else.. you need to load the script in the app or access account, you need to type, I'm here asking to avoid to type anything. If I need to type, web server is already the solution, save it on browser favourites and cal back again my one click.
My goalis to give the contron to anybody who just install an app from the store. Point.
I'm still wait for an answer of RemoteXY since their app look it can support this.

@ sonofcy
you probably don't have a deep nowledge on the IP protocol to understand what I mean, I try to explain that.
When a device gets an IP it knows also its subnet mask, it identifies the IP range where the device can directly comunicate with other IPs, without a gateway. The last address of the reachable range is the broadcast address, anything sent to that address is read and processed by all devices inside that range. If Arduino is running a software that elaborate those broadcast, in a specific TCP or UDP (preferable) ports, and reply to, it can be "discovered" by the app. So the logic is, arduino is running a server on a specific UDP/TCP portwaiting forconnections, it listens to broadcast too, it replies to broadcast telling app its IP, the app then connects to its IP directly (without internet/etc), adruino then sends the dashboard layout like RemoteXY does, showing the button. When button is tap, app sends it to arduino, and arduino turns on the digitaloutput I wrote in sketch, extremely easy. This is the beginning, you can do anything you want. My forcus is just to don't type any value there, any url, anything needed. MQTT needs that,web server needs that,etc.etc.
The important thing is: when app is installed it searches for arduinos on the LAN, it shows them asking to which one I want to connect, when connected I see the dashboard stored on that arduino and I can control it. Wow

The "app" that you are wanting someone to give to you is the front for sending data. A "button" on a phone is a simple few HTML lines of code. Stored in a file with an extension meaning HTML, it can be a web page you can easily assign as the index page and be found from anywhere with internet access.

<!DOCTYPE html>
<html>
<body>
<form>
  <input type="submit" value="Submit">
</form> 
</body>
</html>

The problem with your request is; you do not know what you want, and keep changing your request. The best way to get exactly what you want is to do your own work.

1 Like

Sorry to reply you rude, I exactly know what I want, I've described it carefully different times. A person who does now how the IP protocol works had understood it for sure, I'm sorry you didn't, you'd better know it deeper, it's useful.
As I wrote, XYremote is nearly the way to accomplish it, I'm waiting for their reply if they want to reply to, anyway that still a paid solution.
The main issue here is not to instruct arduino how to listen forbroadcast and reply too, but it's to make app and have it on store as you said,that's mission impossible, so only who has already an app like Arduino IoT or RemoteXY can implement such simple way to communicate.

I know exactly what you want. You do not, or you would produce it. You can't even describe it.

You might be better finding "free" work in the Jobs sub-forum.

1 Like

If you use the picture of an attractive college-aged gal as your avatar your chances are even better.

1 Like

Really, you think that's how it works? I should go back to the teacher I had in 1975 and tell them they are wrong.

Still waiting for RemoteXY, they don't love to answer email or reply to forum :frowning:
I guess I have to try that myself
By the time I had a positive feedback from Arduino team, I hope they will develope soon :slight_smile:

Elizabeth E. (Arduino)

Sep 9, 2024, 18:52 GMT+2
Hello Giovanni,

Thanks for contacting Arduino Support.

Your idea sounds very interesting, and we are confident that many users will find it attractive. It is true that we currently do not have a similar feature in Arduino Cloud, but rest assured that this idea will be considered by our engineers.

In other words, Your cheque is in the mail.

Hi, I apologize in advance for not understanding your proposed project properly.

  1. A terminal device (i.e. IoT device) based on Arduino and various sensors connected to it detects the surrounding environment (temperature, humidity, air pressure, or human vital signs, etc.) and records a limited size log.

  2. When Wi-Fi is activated, the terminal device uploads the log data and its own information to the reserved server.

  3. The reserved server stores the log data and information of the connected terminal device and can respond to requests from other hosts via the web.

  4. The host (mobile phone, PC, tablet, etc.) can access the reserved server to check the list of activated terminal devices and information, as well as the already stored log data (separated by each terminal device). It can also communicate directly with all activated terminal devices and update the configuration of the selected terminal device.

I have described the project as I understand it above. Please advise.

Hi, thanks for your kind interest.
What you described is not what I'm searching, please reset your thoughts about that and try to following me, I'm looking just for a process to let a device (in this case, an app running on mobile phone) to catch an Arduino present on the same LAN (already connected) and show a proper dashboard on the phone display.
To reduce at maximum the description let's think I want a button on the phone display which activates the D0 of Arduino with the first tap and deactivate with the second.
This how it can work, to clear more the example we also suppose the local router giving WiFi isn't connected to internet.

  • Two Arduinos are programmed and connected to LAN, for example by WiFi, they got an IP address from router, 192.168.1.2 and 192.168.1.3, arduino are both listening at broadcast address 192.168.1.255
  • My phone is connected to LTE and I download IoT app, then connect to WiFi (without internet access), run the IoT app, the app searches for Arduinos sending a known IoT UDP packet to address 192.168.1.255,
  • the Arduinos recognize them and reply with their own source IP address to the app using the broadcast 192.168.1.255, the app il is listening too the broadcast and know there are 2 Arduinos present, and s how them on the screen, asking to whoch one I want to connect.
  • I choose the 192.168.1.2, a direct connection then is established and Arduino sends its button layout to the app, for example "button 1 style" at location X, Y with toggle mode, these charactiristics should be stored in shortest way possible, for example one byte to indicate the type of button+one byte for X and one for Y, 3 bytes and my dashboard is created by app.
  • the app layout is arranged online, you give a dashboard designer layout and that produces the bytes to store into the skatch.

Thsi is the elementary way, you can do much moch more, anybody can install the app and work with arduino without any configuration, internet is not necessary.
Devices, toys, anything can be served in such easy and friendly way!