Closed lecocotier closed 3 years ago
Hi, Platformio seems not to be correctly installed. Why are you trying to compile anyway ?
Hi, ok, I don't get what is wrong with platformio. I'm trying to use your firmware to drive MVR500ERP devices, but only toggle command drives the device properly over telnet (ON, OFF, PAUSE) does nothing. In home assistant, device is shown as MTR2000ERX. That's why I wanted to be able to compile and try to find out what is wrong.
To give a bit more details, when I pair the device it goes to default (line 197 of e2bp.cpp), NO_RCPT instead of SHUTTER, so maybe by just changing default to shutter I can test if it's working (I have only shutter devices installed so far). If you like to investigate the issue, here is what I got when pairing: Buffer data: 49 FF 6 Buffer data: BB BB 47 11 6
Answering myself. I tried to build on another computer, same issue, it's maybe missing references to _SPI ? To solve my shutter issue, I removed the configuration and imported it again replacing 0002 at the end of the line by 0003, there it's now a SHUTTER in the configuration and appears to work.
Issue solved, it's coming with last RF24 library v1.4.0 released some days ago.
Fixed by replacing in platformio.ini:
lib_deps = RF24
by
lib_deps = nrf24/RF24@1.3.11
Hi, trying to compile give the following issue on all targets (here is d1_mini): `Processing d1_mini (platform: espressif8266; board: d1_mini; framework: arduino)
Verbose mode can be enabled via
-v, --verbose
option CONFIGURATION: https://docs.platformio.org/page/boards/espressif8266/d1_mini.html PLATFORM: Espressif 8266 (3.0.0) > WeMos D1 R2 and mini HARDWARE: ESP8266 80MHz, 80KB RAM, 4MB Flash PACKAGES:~~ src/RF/RF24_forked.cpp: In member function 'uint8_t RF24_forked::read_payload(void, uint8_t)': src/RF/RF24_forked.cpp:315:18: error: expected primary-expression before '.' token 315 | status = _SPI.transfer(R_RX_PAYLOAD); | ^ src/RF/RF24_forked.cpp:317:26: error: expected primary-expression before '.' token 317 | current++ = _SPI.transfer(0xFF); | ^ src/RF/RF24_forked.cpp:320:13: error: expected unqualified-id before '.' token 320 | _SPI.transfer(0xff); | ^ src/RF/RF24_forked.cpp: In member function 'uint8_t RF24_forked::spiTrans(uint8_t)': src/RF/RF24_forked.cpp:343:18: error: expected primary-expression before '.' token 343 | status = _SPI.transfer(cmd); | ^ src/RF/RF24_forked.cpp: In member function 'bool RF24_forked::begin()': src/RF/RF24_forked.cpp:645:9: error: expected unqualified-id before '.' token 645 | _SPI.begin(); | ^ src/RF/RF24_forked.cpp: In member function 'uint8_t RF24_forked::getDynamicPayloadSize()': src/RF/RF24_forked.cpp:1092:9: error: expected unqualified-id before '.' token 1092 | _SPI.transfer(R_RX_PL_WID); | ^ src/RF/RF24_forked.cpp:1093:18: error: expected primary-expression before '.' token 1093 | result = _SPI.transfer(0xff); | ^ src/RF/RF24_forked.cpp: In member function 'void RF24_forked::toggle_features()': src/RF/RF24_forked.cpp:1261:9: error: expected unqualified-id before '.' token 1261 | _SPI.transfer(ACTIVATE); | ^ src/RF/RF24_forked.cpp:1262:9: error: expected unqualified-id before '.' token 1262 | _SPI.transfer(0x73); | ^ src/RF/RF24_forked.cpp: In member function 'void RF24_forked::writeAckPayload(uint8_t, const void, uint8_t)': src/RF/RF24_forked.cpp:1359:9: error: expected unqualified-id before '.' token 1359 | _SPI.transfer(W_ACK_PAYLOAD | (pipe & 0x07)); | ^ src/RF/RF24_forked.cpp:1361:28: error: expected unqualified-id before '.' token 1361 | while (data_len--) _SPI.transfer(current++); | ^ src/RF/RF24_forked.cpp:1342:20: warning: unused variable 'current' [-Wunused-variable] 1342 | const uint8_t current = reinterpret_cast<const uint8_t>(buf); | ^~~ *** [.pio/build/d1_mini/src/RF/RF24_forked.cpp.o] Error 1 ================================================================================================================= [FAILED] Took 13.68 seconds =================================================================================================================Environment Status Duration
megaatmega2560 FAILED 00:00:03.508 d1_mini_ota FAILED 00:00:18.594 d1_mini FAILED 00:00:13.685 ============================================================================================================ 3 failed, 0 succeeded in 00:00:35.787 ============================================================================================================`