wokwi / wokwi-features

Wokwi Feature requests & Bug Reports
https://wokwi.com
73 stars 17 forks source link

ESP8266 Library request #123

Closed SteveRMann closed 2 years ago

SteveRMann commented 3 years ago

Glad I found this simulator. Any chance of adding the ESP8266 and ESP8266WiFi libraries?

urish commented 3 years ago

Thank you for the comment!

You mean full ESP8266 simulation?

SteveRMann commented 3 years ago

Almost everything I do with the Android IDE is on ESP devices (Wemos D1, D1 mini, NodeMCU and various Sonoff devices). I only use the Uno to test code segments. I can appreciate that it would be a challenge to simulate WiFi, but maybe a terminal-like interface? At least enough to compile without error.

A downside I've realized is that the simulator doesn't tell me what or where my coding errors are.

urish commented 3 years ago

I can appreciate that it would be a challenge to simulate WiFi, but maybe a terminal-like interface? At least enough to compile without error.

It is, indeed - but there's an initial, work-in-progress implementation for the Nano RP2040 Connect chip.

The challenge is that ESP8266 uses a totally different architecture (called Xtensa), and implementing a new architecture is literally months of work. I'm now working on the RP2040 (for the new Pi Pico), and it's been going on since January. If you are interested, there's a playlist where you can see how the RP2040 simulation implemented.

A downside I've realized is that the simulator doesn't tell me what or where my coding errors are.

It should tell you - so if it doesn't this is definitely a bug. Can you share an example where it doesn't tell you about an error?

sutaburosu commented 3 years ago

I certainly see errors, but no warnings are emitted. arduino-cli defaults to no warnings.

lemakavely commented 2 years ago

soo we cant add the library for ESP8266WiFi?

urish commented 2 years ago

You can add the library itself, but we don't have an ESP8266 part, so it probably won't be very useful...

urish commented 2 years ago

Closing as we have ESP32 with WiFi.

There's also an open request for ESP-01 WiFi AT MODEM in #169