-
Notifications
You must be signed in to change notification settings - Fork 74
ESP32 as wifi co processor with sockets & requests library #1
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
Conversation
@ladyada Where can we get the SPI WiFi firmware for the ESP32? |
Can this be used with a feather nrf52840 express or feather m4 express and an external ESP32 or dos it have to be used with a NINA-102 module? If so , |
… socket, and a max transfer size
It's not clear how I can try this out with out the pyportal board or without a way to generate the ESP32 firmware for the WROOOM board. If you have any suggestions, please let me know and I'll be happy to try. |
I am testing this on a feather_nrf52840 connected to an ESPRESSIF ESP32 devkit (WROOM) board. I tried the simpletest and get this error on the Ping
I commented out the ping and it passes the other tests:
For some reason - every other time I try to connect, it has trouble finding my network, but if I reboot and try again it works.
|
the ping fails because the "params" sent is a 4 integer bytearray - returned by get_host_by_name and when the array is enumerated each value is an integer so the len(param) fails in send_command. there were recent changes at line 183 (send_command) |
regarding the connect failures, it is repeatable -- If it is connected then reset, the next attempt to connect fails. Attempting to connect again passes...
|
cool! cheerlights works!
|
latest commit removes need for GPIO0 and also fixes ping |
I don't get errors from ping, but I also don't get responses...
|
hmmm -- nevermind
used the updated example -- not sure what changed, but it works now ... |
FYI -- I started using this to workaround the failed connects -- seems to work well:
|
@jerryneedell kk you feel this is ok to merge/release for now then? |
Yes. Go for it! I’ve done some posts to AIO and have been running cheer lights for hours. |
This is a complete round trip. At least... for pinMode and digitalWrite. However, I'm now sending a command and getting the correct response. Wrote: ['0xe0', '0x51', '0x2', '0x1', '0xd', '0x1', '0x0', '0xee'] Read: 0xe0 Read: 0xd1 Read: 0x1 Read: 0x1 Parameter #0 length is 1 Read: ['0x1'] Read: 0xee Read 1: [bytearray(b'\x01')] Sending param #0 is 1 bytes long Sending param adafruit#1 is 1 bytes long
ready for consumption!