signorettae / ESP32-ArtNet-to-DMX

A simple ArtNet-to-DMX converter based on an ESP32 board
21 stars 2 forks source link

Copalation Error #1

Open diasrobson opened 11 months ago

diasrobson commented 11 months ago

Hi There, Just wanted to say thank you for all your hard work I have just tried to Run it But encountered some Errors

IDE: Arduino 2.2.1 board : ESP32 D1 Mini

Library: esp_dmx (3.1.0) -- ArtNetWifi (1.5.1)

Running Example Without any modifications

IDE Error

`/Users/USER/Downloads/ESP32-ArtNet-to-DMX-main/ESP32-ArtNet-to-DMX/ESP32-ArtNet-to-DMX.ino: In function 'void setup()':
/Users/USER/Downloads/ESP32-ArtNet-to-DMX-main/ESP32-ArtNet-to-DMX/ESP32-ArtNet-to-DMX.ino:169:32: error:'DMX_DEFAULT_INTR_FLAGS' was not declared in this scope
   dmx_driver_install(dmxPortA, DMX_DEFAULT_INTR_FLAGS);
                                ^~~~~~~~~~~~~~~~~~~~~~
/Users/USER/Downloads/ESP32-ArtNet-to-DMX-main/ESP32-ArtNet-to-DMX/ESP32-ArtNet-to-DMX.ino:169:32: note: suggested alternative: 'IP_DEFAULT_TTL'
   dmx_driver_install(dmxPortA, DMX_DEFAULT_INTR_FLAGS);
                                ^~~~~~~~~~~~~~~~~~~~~~
                                IP_DEFAULT_TTL
/Users/USER/Downloads/ESP32-ArtNet-to-DMX-main/ESP32-ArtNet-to-DMX/ESP32-ArtNet-to-DMX.ino: In function 'void onArtNetFrame(uint16_t, uint16_t, uint8_t, uint8_t*)':
/Users/USER/Downloads/ESP32-ArtNet-to-DMX-main/ESP32-ArtNet-to-DMX/ESP32-ArtNet-to-DMX.ino:198:30: error: 'DMX_MAX_PACKET_SIZE' was not declared in this scope
   dmx_write(dmxPortA, dataA, DMX_MAX_PACKET_SIZE);
                              ^~~~~~~~~~~~~~~~~~~
/Users/USER/Downloads/ESP32-ArtNet-to-DMX-main/ESP32-ArtNet-to-DMX/ESP32-ArtNet-to-DMX.ino:198:30: note: suggested alternative: 'ETH_MAX_PACKET_SIZE'
   dmx_write(dmxPortA, dataA, DMX_MAX_PACKET_SIZE);
                              ^~~~~~~~~~~~~~~~~~~
                              ETH_MAX_PACKET_SIZE

exit status 1

Compilation error: 'DMX_DEFAULT_INTR_FLAGS' was not declared in this scope`
signorettae commented 11 months ago

Hi, thank you for your appreciation! I've tried to compile the code (also for ESP32 D1 Mini) and everything went smoothly. My board package's version is 2.0.11 (from Espressif), while my esp_dmx lib version is (3.0.2-beta). Which version of the IDE are you using?

diasrobson commented 11 months ago

Hi, thank you for your appreciation! I've tried to compile the code (also for ESP32 D1 Mini) and everything went smoothly. My board package's version is 2.0.11 (from Espressif), while my esp_dmx lib version is (3.0.2-beta). Which version of the IDE are you using?

It companies now thanks, the problem seems to be a breaking change to the esp_DMX library it companies perfectly fine on (3.0.2-beta) but fails when using (3.1.0)

Thank you for your Help