I have several d1 wemos wifi modules for my home automation and I want to use a raspberry to set up a server. What I want is the following:
I want a raspberry to host a server on my WLAN, all wifi peripherals must login as clients on this server. The clients must be able to communicate to eachother through this server.
For instance. When my alarmclock goes off, I want it to send one or two bytes to the server containing an ID and an instruction which relays these bytes to the wifi module of my thermostate (using the ID).
And I want to make a Qt or processing application for my TV (Ubuntu OS) as well as for my phone which acts as a client as well. Via this application I want to controll the LED lighting in my living room, the temperature the curtains etc etc.
What I would likec to know if my approach is a viable approach to begin with and what would the easiest way be to set up such a server? I was thinking of writing a C program but I heared there were better ways to achief it