-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HubEmulation and PoweredUpRemote at a time #62
Comments
@paki111 First thanks for raising your first issue! APP <--> ESP (HubEmulation) |
I have searched the NimBLE-Arduino library about issues where the ESP works as Client and Server at the same time and I found the following issue: h2zero/NimBLE-Arduino#298 |
@paki111 I have got it up and running. I have connected the APP first to the Emulated Hub on the ESP and then connected the PoweredUp remote to the ESP. After that procedure I was able to change the color of the Remote via the APP and the ESP as a proxy in between. I have added a feature branch (https://github.com/corneliusmunz/legoino/tree/feature/client_server_at_the_same_time) where I have modified the
Hope it will work on your side 😄 |
@corneliusmunz Thank you very much for quick response and for resolution. My sketch (HubEmulation.ino) was quite similar, but I did not notice that connection should be client-server for the App and server-client for the Remote. My idea was to have one sketch for two scenarios: lego RC car controlled sometimes by the App and sometimes by the Remote. I will check it tonight on my setup. |
It works absolutely flawless! My idea was to have 2in1 functionality and now we have even 3in1 - we can control the same ESP by the Remote or by the App or by the Remote and App at the same time! This opens up new possibilities... and this example definitely is worth a commit 🍺 Thank You very much. |
To use Remote without App connected I slightly modified line in HubEmulation void loop(): |
@paki111 Thanks for testing it on your side and giving feedback. I will check your changes and maybe add this as another example sketch to the library |
@corneliusmunz OK, I added example for ESP32 D1 mini with Wemos motor shield and tested control via the App and/or Remote. |
Nice to meet you. I always enjoy using this wonderful library. This library doubles the fun of Lego. |
I combined HubEmulation and PoweredUpRemote functionality in one sketch. Now I can controll my esp32 with PoweredUp controller and at the same time in PoweredUp app I can connect emulated hub but controlls from the app doesn't work.
Every functionality separetely works fine, but in tandem only PoweredUpRemote works.
The text was updated successfully, but these errors were encountered: