duino-coin icon indicating copy to clipboard operation
duino-coin copied to clipboard

Where to get the ArduinoJSON dependency

Open Tech1k opened this issue 3 years ago • 7 comments

The newest update for ESP boards (2.6.3) requires ArduinoJSON library that's needed to parse the data coming from the Duino-Coin /getPool API to automatically connect to the least loaded node.

If you do not have the ArduinoJSON library installed, you will get an error during compilation.

To install it, we recommend using the Arduino library manager:

Open your Arduino IDE > Sketch > Attach libraries > Manage libraries > Type ArduinoJson and install the newest version (6.18.13).

After doing this you should have no problems related to JSON with compiling the code.

Alternatively you can install the library manually (won't auto-update):

Download the https://github.com/bblanchon/ArduinoJson library and unzip in your Arduino libraries folder (see https://www.arduino.cc/reference/en/libraries/)

(written by @joaquinbvw on the Duinocoin Discord, corrected by @revoxhere)

Tech1k avatar Aug 18 '21 23:08 Tech1k

Mining proof

Thank you for the details, it is worked, the only thing that did not work is to download the zip file, I download ad update the library but did not works, so I choose to update the library directly from tools, I go to (tools), and from the list I choose (Manage Libraries), from the windows I write (JSON), the list opened, and I find 2 Jason, I install Arduino Jason from the list and after that, I manage to update my ESP8266 and worked, the picture below as proof

Raabitco avatar Aug 19 '21 12:08 Raabitco

Closing due to inactivity/solved in the latest versions Edit: didnt mean to close that one!! sorry :P

revoxhere avatar Sep 26 '21 19:09 revoxhere

Closing due to inactivity/solved in the latest versions Edit: didnt mean to close that one!! sorry :P

It happens lmao xD

Tech1k avatar Oct 03 '21 04:10 Tech1k

Arduino:1.8.15 (Windows 10), 开发板:"Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, no dtr (aka ck), 26 MHz, 40MHz, QIO (fast), 512KB (FS:none OTA:~246KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

c:/users/lenovo/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\lenovo\AppData\Local\Temp\arduino_cache_798067\core\core_7ef3789270309d957822bd1371abb5e5.a(core_esp8266_main.cpp.o): in function `__loop_end':

C:\Users\lenovo\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/core_esp8266_main.cpp:189: undefined reference to `setup'

c:/users/lenovo/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\lenovo\AppData\Local\Temp\arduino_cache_798067\core\core_7ef3789270309d957822bd1371abb5e5.a(core_esp8266_main.cpp.o):(.text._ZL12loop_wrapperv+0xc): undefined reference to `loop'

c:/users/lenovo/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\lenovo\AppData\Local\Temp\arduino_cache_798067\core\core_7ef3789270309d957822bd1371abb5e5.a(core_esp8266_main.cpp.o): in function `_ZL12loop_wrapperv':

C:\Users\lenovo\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/core_esp8266_main.cpp:193: undefined reference to `setup'

c:/users/lenovo/appdata/local/arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.0.4-gcc10.3-1757bed/bin/../lib/gcc/xtensa-lx106-elf/10.3.0/../../../../xtensa-lx106-elf/bin/ld.exe: C:\Users\lenovo\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/core_esp8266_main.cpp:196: undefined reference to `loop'

collect2.exe: error: ld returned 1 exit status

exit status 1

为开发板 Generic ESP8266 Module 编译时出错。

在文件 -> 首选项开启 “编译过程中显示详细输出”选项 这份报告会包含更多信息。

dyhanshu avatar Jan 25 '22 04:01 dyhanshu

Good evening, I have had problems when compiling the program, the version I use is the most current and this is what I get

C:\Users\adria\OneDrive\Documentos\DuinoCoin\duino-coin-3.0\ESP8266_Code\ESP8266_Code.ino:291: warning: "LED_BUILTIN" redefined 291 | #define LED_BUILTIN 2 | : note: this is the location of the previous definition C:\Users\adria\OneDrive\Documentos\DuinoCoin\duino-coin-3.0\ESP8266_Code\ESP8266_Code.ino: In function 'void setup()': C:\Users\adria\OneDrive\Documentos\DuinoCoin\duino-coin-3.0\ESP8266_Code\ESP8266_Code.ino:477:35: warning: 'void {anonymous}::lwdtcb()' is deprecated: Use IRAM_ATTR in place of ICACHE_RAM_ATTR to move functions into IRAM [-Wdeprecated-declarations] 477 | lwdTimer.attach_ms(LWD_TIMEOUT, lwdtcb); | ^~~~~~ C:\Users\adria\OneDrive\Documentos\DuinoCoin\duino-coin-3.0\ESP8266_Code\ESP8266_Code.ino:364:22: note: declared here 364 | void ICACHE_RAM_ATTR lwdtcb(void) { | ^~~~~~ C:\Users\adria\OneDrive\Documentos\DuinoCoin\duino-coin-3.0\ESP8266_Code\ESP8266_Code.ino:477:41: warning: 'void {anonymous}::lwdtcb()' is deprecated: Use IRAM_ATTR in place of ICACHE_RAM_ATTR to move functions into IRAM [-Wdeprecated-declarations] 477 | lwdTimer.attach_ms(LWD_TIMEOUT, lwdtcb); | ^ C:\Users\adria\OneDrive\Documentos\DuinoCoin\duino-coin-3.0\ESP8266_Code\ESP8266_Code.ino:364:22: note: declared here 364 | void ICACHE_RAM_ATTR lwdtcb(void) { | ^~~~~~ C:\Users\adria\OneDrive\Documentos\DuinoCoin\duino-coin-3.0\ESP8266_Code\ESP8266_Code.ino: In function 'void loop()': C:\Users\adria\OneDrive\Documentos\DuinoCoin\duino-coin-3.0\ESP8266_Code\ESP8266_Code.ino:525:70: warning: 'static String experimental::crypto::SHA1::hash(const String&)' is deprecated [-Wdeprecated-declarations] 525 | result = SHA1::hash(last_block_hash + String(duco_numeric_result)); | ^ In file included from C:\Users\adria\OneDrive\Documentos\DuinoCoin\duino-coin-3.0\ESP8266_Code\ESP8266_Code.ino:37: C:\Users\adria\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.0.2\cores\esp8266/Crypto.h:231:19: note: declared here 231 | static String hash(const String &message) attribute((deprecated)); | ^~~~

I would be very grateful if you help me.

AdrianITT avatar Feb 03 '22 06:02 AdrianITT

I am using an ESP8266

AdrianITT avatar Feb 03 '22 06:02 AdrianITT