ConfigurableFirmata icon indicating copy to clipboard operation
ConfigurableFirmata copied to clipboard

Define static IP

Open ScreamZ opened this issue 8 months ago • 2 comments

Hello,

I'm using this for ESP32, is there any way to define a static IP address instead of relying on DHCP ?

With standardFirmataWifi it's possible but looks like not supported for ESP32 ? Also is there any ETA for servo ?

Or is it better that I switch to ESP8266 ?

Thank you

ScreamZ avatar Nov 09 '23 20:11 ScreamZ

Hi!

I'm using this for ESP32, is there any way to define a static IP address instead of relying on DHCP ?

I have never tried, but it should be possible by just changing a few lines in the inialization code. You might check this example, for instance. Instead of assigning a static IP address on the ESP32, you can usually also configure your WIFI router to assign always the same IP to this device instead.

Also is there any ETA for servo ?

Until very recently, the servo library was not supported on the ESP32, but I think there had been some work to fix that. So with the very latest versions of everything, it could work. I do not have any servos to test, so unfortunately you need to do the testing yourself. The first step would be to enable the servo component for the ESP32 in the ino file and check whether the build succeeds.

Or is it better that I switch to ESP8266 ?

I don't think so, the ESP8266 is quite a step backwards in performance and capabilites from the ESP32. It does have a bit broader support, because it's older, but going forward, I would rather recommend trying to get everything to work with the newer chip.

pgrawehr avatar Nov 10 '23 13:11 pgrawehr

About SERVO on ESP32 :

WARNING: library Servo claims to run on avr, megaavr, sam, samd, nrf52, stm32f4, mbed, mbed_nano, mbed_portenta, mbed_rp2040 architecture(s) and may be incompatible with your current board which runs on esp32 architecture(s). In file included from /private/var/folders/rn/m4j774cj3kl9q8mftngq47g40000gn/T/.arduinoIDE-unsaved20231013-5234-1a8htfv.1ym7/ConfigurableFirmata/ConfigurableFirmata.ino:99: /Users/screamz/Library/Arduino15/libraries/Servo/src/Servo.h:77:2: error: #error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor." #error "This library only supports boards with an AVR, SAM, SAMD, NRF52 or STM32F4 processor."

About

I have never tried, but it should be possible by just changing a few lines in the inialization code. You might check this example, for instance. Instead of assigning a static IP address on the ESP32, you can usually also configure your WIFI router to assign always the same IP to this device instead.

I'll give it a try, sounds simple yeah

ScreamZ avatar Nov 13 '23 17:11 ScreamZ