We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi all
I tried this repo but I have a warning during compilation :
/Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp: In function 'void echo_cc1101_version()': /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:430:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 430 | echo_debug(debug_out, "CC1101 Partnumber: 0x%02X\n", halRfReadReg(PARTNUM_ADDR)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:431:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 431 | echo_debug(debug_out, "CC1101 Version != 00 or 0xFF : 0x%02X\n", halRfReadReg(VERSION_ADDR)); // != 00 or 0xFF | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp: In function 'void show_cc1101_registers_settings()': /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:447:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 447 | echo_debug(debug_out, "Config Register in hex:\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:448:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 448 | echo_debug(debug_out, " 0 1 2 3 4 5 6 7 8 9 A B C D E F\n"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:451:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 451 | echo_debug(debug_out, "%02X ", config_reg_verify[i]); | ^~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:455:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 455 | echo_debug(debug_out, "\n"); | ^~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:458:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 458 | echo_debug(debug_out, "\n"); | ^~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:459:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 459 | echo_debug(debug_out, "PaTable:\n"); | ^~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:463:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 463 | echo_debug(debug_out, "%02X ", Patable_verify[i]); | ^~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:465:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 465 | echo_debug(debug_out, "\n"); | ^~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp: In function 'uint8_t cc1101_check_packet_received()': /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:505:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 505 | echo_debug(debug_out, "\n"); | ^~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:507:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 507 | echo_debug(debug_out, " bytes=%u rssi=%u lqi=%u F_est=%u ", pktLen, l_Rssi_dbm, l_lqi, l_freq_est); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:513:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 513 | echo_debug(debug_out, "."); | ^~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp: In function 'uint8_t decode_4bitpbit_serial(uint8_t*, int, uint8_t*)': /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:611:75: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 611 | if ((dest_bit_cnt == 10) && (!bit_pol)) { echo_debug(debug_out, "stop bit error10"); return dest_byte_cnt; } | ^~~~~~~~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp: In function 'int receive_radian_frame(int, int, uint8_t*, int)': /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:641:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 641 | echo_debug(debug_out, "\nsize_byte=%d l_radian_frame_size_byte=%d\n", size_byte, l_radian_frame_size_byte); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:643:77: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 643 | if (l_radian_frame_size_byte * 4 > rxBuffer_size) { echo_debug(debug_out, "buffer too small\n"); return 0; } | ^~~~~~~~~~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:656:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 656 | if (l_tmo < rx_tmo_ms) echo_debug(debug_out, "GDO0! (0, %d) ", l_tmo); else return 0; | ^~~~~~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:667:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 667 | if (l_tmo < rx_tmo_ms && l_byte_in_rx > 0) echo_debug(debug_out, "1st synch received (%d) ", l_byte_in_rx); else return 0; | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:672:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 672 | echo_debug(debug_out, " rssi=%u lqi=%u F_est=%u \n", l_Rssi_dbm, l_lqi, l_freq_est); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:686:48: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 686 | if (l_tmo < rx_tmo_ms) echo_debug(debug_out, "GDO0! (1, %d) ", l_tmo); else return 0; | ^~~~~~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:700:68: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 700 | if (l_tmo < rx_tmo_ms && l_total_byte > 0) echo_debug(debug_out, "frame received (%d)\n", l_total_byte); else return 0; | ^~~~~~~~~~~~~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp: In function 'tmeter_data get_meter_data()': /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:757:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 757 | echo_debug(debug_out, "MARCSTATE : raw:0x%02X 0x%02X free_byte:0x%02X sts:0x%02X sending 2s WUP...\n", marcstate, marcstate & 0x1F, CC1101_status_FIFO_FreeByte, CC1101_status_state); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:778:31: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 778 | echo_debug(debug_out, "txbuffer:\n"); | ^~~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:787:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 787 | echo_debug(debug_out, "%i free_byte:0x%02X sts:0x%02X\n", tmo, CC1101_status_FIFO_FreeByte, CC1101_status_state); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:795:91: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 795 | if (!receive_radian_frame(0x12, 150, rxBuffer, sizeof(rxBuffer))) echo_debug(debug_out, "TMO on REC\n"); | ^~~~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/cc1101.cpp:812:27: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 812 | echo_debug(debug_out, "TMO on REC\n"); | ^~~~~~~~~~~~~~ /Users/pierrickaubin/Documents/Arduino/everblu-meters-esp8266/everblu-meters-esp8266.ino:32:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 32 | "{ | ^~~~~~~~~~~~~~~~~~~~~~~ 33 | "liters": %d, | ~~~~~~~~~~~~~~~~~~~~~~~ 34 | "counter" : %d, | ~~~~~~~~~~~~~~~~~~~~~~~ 35 | "battery" : %d, | ~~~~~~~~~~~~~~~~~~~~~~~ 36 | "timestamp" : "%s" | ~~~~~~~~~~~~~~~~~~~~~~~ 37 | }"; | ~~ . Variables and constants in RAM (global, static), used 35488 / 80192 bytes (44%) ║ SEGMENT BYTES DESCRIPTION ╠══ DATA 1620 initialized variables ╠══ RODATA 6844 constants ╚══ BSS 27024 zeroed variables . Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 61223 / 65536 bytes (93%) ║ SEGMENT BYTES DESCRIPTION ╠══ ICACHE 32768 reserved space for flash instruction cache ╚══ IRAM 28455 code in IRAM . Code in flash (default, ICACHE_FLASH_ATTR), used 332504 / 1048576 bytes (31%) ║ SEGMENT BYTES DESCRIPTION ╚══ IROM 332504 code in flash
When I run the frequency test no frequency is found. How do I know if the CC1101 is correctly plugged ? I bought this one : https://www.amazon.fr/dp/B0CPY5LWFY?psc=1&ref=ppx_yo2ov_dt_b_product_details
Here are some logs :
size_byte=124 l_radian_frame_size_byte=171 GDO0! (0, 0) TMO on REC Test frequency : 433.781982 MARCSTATE : raw:0x13 0x13 free_byte:0x0F sts:0x02 sending 2s WUP... 202 free_byte:0x0E sts:0x07 size_byte=18 l_radian_frame_size_byte=25 GDO0! (0, 0) TMO on REC size_byte=124 l_radian_frame_size_byte=171 GDO0! (0, 0) TMO on REC Test frequency : 433.782471
size_byte=124 l_radian_frame_size_byte=171 GDO0! (0, 0) TMO on REC Test frequency : 433.781982 MARCSTATE : raw:0x13 0x13 free_byte:0x0F sts:0x02 sending 2s WUP... 202 free_byte:0x0E sts:0x07
size_byte=18 l_radian_frame_size_byte=25 GDO0! (0, 0) TMO on REC
size_byte=124 l_radian_frame_size_byte=171 GDO0! (0, 0) TMO on REC Test frequency : 433.782471
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi all
I tried this repo but I have a warning during compilation :
When I run the frequency test no frequency is found. How do I know if the CC1101 is correctly plugged ? I bought this one : https://www.amazon.fr/dp/B0CPY5LWFY?psc=1&ref=ppx_yo2ov_dt_b_product_details
Here are some logs :
The text was updated successfully, but these errors were encountered: