I have an Arduino controlled WiFi lighting system that uses MiLight LED bulbs and I’m trying to set up motion controlled lighting zones controlled by Spark Cores (I have two). Communication to the Arduino is via UDP which on my network is quite reliable. The Arduino controller (a Uno at the moment) runs 24/7 and controls the light zones in my house using programmed schedules and a light level.
At the moment the Cores run for some hours but eventually lose the local network, i.e. their IPs do not show in a network scanner. The Core appears to be functioning as it pulses cyan but the Cores do not respond to a UDP message nor do they send any. I have tried using the Core Management functions to disconnect the Core from the Cloud but the network connection is still lost.
Any help will be appreciated and if needed I can post my code.
I have been doing a lot of testing and I still end up puzzled!
I use the iOS app iNet on my iPhone to look at my network connections and with the same code running on my two Cores sometimes neither show on the network yet the UDP messages to my Uno are received and the acknowledgments are received back on the Cores. I also run the app UDP test tool on my iPhone and connect to the Cores, sometimes one will respond whilst the other doesn’t. So you can see why I’m puzzled.
I can also Ping IP addresses from the iNet app but most of the time the Cores do not respond. Should the Core respond to a ping sent from the iPhone app?