Skip to content
New issue

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

Where to get the ArduinoJSON dependency #832

Open
Tech1k opened this issue Aug 18, 2021 · 7 comments
Open

Where to get the ArduinoJSON dependency #832

Tech1k opened this issue Aug 18, 2021 · 7 comments
Assignees
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@Tech1k
Copy link
Collaborator

Tech1k commented Aug 18, 2021

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 Tech1k self-assigned this Aug 18, 2021
@Tech1k Tech1k added documentation Improvements or additions to documentation good first issue Good for newcomers labels Aug 18, 2021
@Tech1k Tech1k pinned this issue Aug 18, 2021
@gsrbr gsrbr mentioned this issue Aug 19, 2021
@Raabitco
Copy link

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

@revoxhere
Copy link
Owner

revoxhere commented Sep 26, 2021

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

@revoxhere revoxhere reopened this Sep 26, 2021
@Tech1k
Copy link
Collaborator Author

Tech1k commented Oct 3, 2021

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

It happens lmao xD

@revoxhere revoxhere mentioned this issue Oct 17, 2021
@dyhanshu
Copy link

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 编译时出错。

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

@AdrianITT
Copy link

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
Copy link

I am using an ESP8266

@Grantrocks
Copy link
Contributor

Try to update the ino file. Get the latest one in this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

6 participants