RyanMillr / Chappie

Monogame app to capture inputs from an xbox controller and send http requests to rest API running on esp8266 based robot.
0 stars 0 forks source link

ESP webserver-websocket wifi -serial bridge #1

Open mkeyno opened 7 years ago

mkeyno commented 7 years ago

sorry to open ticket for my question but honestly I couldn't figure out which part of your code would be help me out, actually I intend to use my special webserver-websocket program(Arduino IDE) in the ESP module to made Wifi -serial bridge with simple C# application , may I have your advice which part of source code would be helpful for me? BR

RyanMillr commented 7 years ago

Not a problem. So, the actual code that runs on the esp8266 is in Chappie4wd.ino in the Chappie4wd directory. I was using it to run the ada fruit feather motor driver (https://www.adafruit.com/product/2927). So, if you are doing something else you'd probably want to take out the parts of the code that refer to that or I could maybe upload a gist with out it if that would help.

To run the self hosting hot spot off the esp8266, I'm using the ESP8266WiFi library and leveraging aREST to run an actual http rest api on it. Then, I would join my laptop to the hotspot on the esp and the monogame project would capture inputs from the xbox 360 controller plugged into my laptop and fire off http requests to the robot for navigation. I'm getting ready to head out of town for the week end, but I'd be happy to answer any questions when I get back or see if I can point you in the right direction.

mkeyno commented 7 years ago

thanks for reply , actually I made my ESP websocket-server side and its fast and reliable but I don't have enough skill in C# debugging , so I really appreciated if you direct me to handler function which is responsible to create client websockt toward ESP , simple thought would be like button on form which is pass IP&port data to that handler