I have a Photon collecting data via its UART which is connected to a device that spits out status data every second.
I have a client who, wants to be able to access the data stored in variables on the Photon over a ethernet port on our product.
I’ve used a Ethernet adapter with a Arduino Uno before to provide a internet connection to the Uno and that worked just fine.
I have not ever used Ethernet to allow another device that connects to it to grab data from it.
I see there are a few ethernet options that can be used with the Photon but I need some guidance on how to set it up so other devices can pull data from the Photon.
Other devices can connect to that server and request data from the Photon in that way.
Note this only works locally. It does not work through Particle’s cloud, but if the other devices are on the same LAN as the Photon/Ethernet Overlay then it should work for you. The WizNet W5500 chip this overlay uses supports up to 8 clients if memory serves me correctly so if you have several devices that need to connect you’ll want to make sure those devices connect, get their data, then close the socket.
If you have any other questions please let me know.
I will be powering these from a 24v battery bank, not sure if you have any adapter boards that have 3.3/5v voltage converters on board that you would recommend or not. I can provide a external dc to dc converter if needed.
I picked up 6 of the Ethernet Overlay Shield's and the smaller bottom boards that allow me to put a Photon and this Ethernet adapter on the same shield.
I've never used the TCP Server code before but I have used an Arduino with a different WizNet W5500 ethernet breakout to allow an Arduino to push data over the internet.
Do you have any advice, links, or examples that you could point me to that would provide an example showing the code that would allow somebody to connect and then ask for data that is saved in variables stored on the Photon?
I'm going to keep looking for examples for this regarding the Wiz5500 module but wanted to ask since maybe you have this info in an easy to share format.
I'm going to need to buy 30-40 more of these once these are up and running correctly.
I did try the DHCP - UDP Broadcast Message example and it did work just fine so I’m confirming this is good with the client also and if so then were good to go!