ulno / libni

Open library and examples for building and receiving commands networked input devices
MIT License
2 stars 1 forks source link

ESP8266 as Receiver #1

Open dobbsbp opened 8 years ago

dobbsbp commented 8 years ago

Currently the way things are set up, an ESP device communicates with a computer which in turn uses a key injector to perform "key presses".

I think a good expansion would be to have the ESP touch/button device connect to another ESP directly or via wifi network and control the gpio pins.

I believe this has an incredible amount of applications so long as the user is able to do the physical construction for whatever it is they would be trying to do. Can be something like a light switch, power outlet control, RC car or similar device and so on.

I'd be curious to hear other ideas for uses, but I do believe it would be worth it to further develop something like this.

Cheers!

EvansJahja commented 8 years ago

I'd like to give suggestion that the communication would have some sort of "channels" later on, to ensure different devices wouldn't unexpectedly interact with others. That way, we can have lots of devices without worrying that braking a RC car would turn off the light. :)

ulno commented 8 years ago

The channels are already working in MQTT mode - just work on different topic - in UDP/TCP this can be simulated talking to different hosts/ports.

ulno commented 8 years ago

It is also possible to remap the input keys to another set of keys as libni supports (at least in libgdx/java) a callback when a new controller is detected. You can then assign a new mapping to this or treat all keys the same.