Hi Arduino Forum,
[edit: i've changed the original topic to arduino Bonjour / Zeroconf] read last post!
I need some advice on how to approach my idea for a graduation project.
The idea is to create an interface for a device (arduino with sensors, actuators) on an iDevice or other 'pad'.
I want to create the app on the iDevice or 'pad' in HTML5, using websockets. I allready found out that there are
websocket libraries for Arduino:
https://github.com/ejeklint/Arduino-Websocket-Server
https://github.com/krohling/ArduinoWebsocketClient
Also, there's a nodeJS powered allround websocket solution: http://socket.io/#how-to-use
EDIT: after watching [this]: to clarify, i DO NOT want to use a server! either the arduino or the HTML5 app should act as 'server'.
Beneath is a simple diagram of what i want to achieve:
The data has to be able to go around in real-time (i need to poll a sensor quite often)
So i have some questions about this idea:
- Can i use the websocket libraries using a WiFi shield?
- Should i use default HTML5 webSocket implementation, or should i go for the socket.io solution?
- should arduino be the server or client? and more important, why?
- For prototyping, i can just use local IP adresses which i can find out. but how to let these 2 websockets find each other so to say?
i mean, is there a way to discover one eachother without having static adresses for each websocket? my solution has to work in every
standard wifi network
Thanks!