Hi all, first post here in the forum! I’m looking to use Spark for a fairly simple project, which essentially involves using one Spark to take two mechanical relay outputs, and transmit them over Wi-Fi to another Spark which will then provide outputs that I can operate via a relay shield for the end device. It’s very much like a wireless switch, but with an analog switch at the input side.
This requires that the two Spark units be able to address each other via Wi-Fi. I understand that they need to be on my Wi-Fi network, which is fine, but I’m not sure how Spark would handle a connection between two units like this. For example, I’ve seen that it’s not super simple to give a Spark its own static IP address, so is there a host name or some other network identification method I could use in the code to tell the Spark on the input side to send its information to the Spark on the output side? (This will be purely one-way communication for now at least.) Do I need to use MAC addresses?
I’ve done some coding before, but I’m definitely more of a hardware guy and I haven’t really done any microcontroller programming of this type so I’d appreciate some guidance, thanks!