Variable over network

Hi everyone,
I'm looking for some project guidance. I'm not new to Arudino but I'm self taught through hours of failing at different projects until I finally get it right lol. I probably don't pick it up as easy as some so I would appreciate a little leeway with my questions lol.

My project is a home automation setup, I have been using Blynk for most of my home automation allowing me to send variable back and forth between d1 mini's over my network. The problem is Blynk has gone to a monthly payment scheme so I want to try something different avoiding a monthly payment for a simple hobby.

What I'm trying to accomplish is to just send variables from one arduino to the other. All of my boards are d1 minis and are connected to my network. What I want to be able to accomplish is if I push a button on one arduino it changes a variable and then sends that variable to another arduino that will turn on a device. I've experimented with sending UDP packets which is working decently well, but it doesn't seem to be efficient especially when sending multiple variables.

Just looking for advise on the simplest way for one arduino to change a variable on another arduino over a local network. Thanks in advance for helping this newbie out.

Please post your entire sketch(s).

There is no obvious reason why that should be the case.

Are you sending one packet for each variable?

fail is an acronym for "Forward Action In Life". That method of learning works great for most of us and we tend to remember.

I got a few bumps on my head from banging it on a wall today but I think I got it. My concerns was with my whole home energy monitor. My one Arduino Due will act as a server of sorts as a middle man between Bylnk and my home automation boards. My whole home energy monitor sends two different variables to the server, "my Arduino Due". Then my server board will then relay that info to the Blynk service so I can monitor it using an app on my phone. I was worried since my energy monitor arduino poles the current transformers on my main panel 4000 times a second that it would be too much UDP transmissions to my server board. I slowed the transmissions down to once per second and the network seems to have no problem keeping up. Incase anyone wonders why I'm going through so much trouble with a server arduino instead of just sending the info direct from the board to blynk, its because blynk has implemented a limit of two boards per account. This way I can add as many boards locally as I wish and there will still only be one board connected to my Blynk account. Thanks for the replies.

Devious. Nice hack. I like it.

How can we help you?

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